郑州一盗车贼趁环卫工扫地偷车 车上定位系统帮破案
9 questions
1
vote
2
answers
139
views
How to detect netrw directory listing from autocommand?
I want to detect from a BufEnter autocommand whether the buffer is a netrw directory listing.
It seems that when the autocommand is fired, the filetype is empty and there are no netrw-related buffer ...
1
vote
0
answers
199
views
How can I track the event of opening a file in netrw in an autocommand?
I'm trying to solve this problem by creating an autocommand which will track when a new buffer is opened through netrw, and will then immediately close netrw once the buffer is closed.
How can I track ...
0
votes
0
answers
513
views
Setting ftdetect a given directory
I'm looking for a way to set filetype on load, a loading phase via ftdetect.
Right now I can open the files inside a given directory via some utility function that I wrote, and during the opening ...
0
votes
1
answer
706
views
Enable line numbering for directories
When viewing a directory (using :Explore, for example), I would like to see line numbers. I can run :set number after opening the directory, and that works, but I can't get numbering to turn on by ...
2
votes
0
answers
423
views
Jump to last position when using vim netrw to open a file
I am looking to jump automatically to the last position in any file that I open.
I have in my ~/.vimrc file:
autocmd BufReadPost * ...
2
votes
1
answer
543
views
Focus on file when when opening when permanent window for file explorer is enabled
I have a permanent window for file explorer enabled by netrw_altv=1 option. The problem is that when I run vim with file or directory as an argument the window with file explorer is focused. How can I ...
3
votes
4
answers
3k
views
Autocmd on directory to replace netrw
I use the ranger plugin wich I can trigger with a shortcut. But when I open a directory I would like to use the plugin instead of netrw.
So I have found that the filetype of directories is netrw, ...
7
votes
2
answers
463
views
au FileType netrw echom "ft is now netrw" does not show up in :messages
Entering in vim
:au FileType netrw echom "ft is now netrw"
Afterwards, I open a netrw window with :E .
Now, I expect to have a message entry in :messages. However, no message is there. Why is there ...
2
votes
1
answer
299
views
BufWritePost not working after navigating using netrw
I'm trying to deploy some static content upon writeing a buffer with an autocmd:
augroup dep
autocmd!
autocmd BufWritePost myProject/frontEnd/** :call s:deploy()
augroup END
The s:deploy function ...