vim-vinegar
vim-vinegar copied to clipboard
Retain file highlight whilst bouncing up to parent directory
It would be awesome if the file in the current buffer could remain highlighted as we bounce higher up the tree, to provide a clearer context of the file's location within the tree.
Maybe not possible, but the ideal would probably be if the whole project tree opened up with the file selected, much like NERDTreeFind does, but in the current buffer (obviously), and without the persistent state that you get with the sidebar.
Well right now the cursor is positioned on the current file.
It is when you hit - for the first time, but not on subsequent presses. On the second press, I'm in the parent directory, and the directory I just travelled up from is highlighted, but because it's collapsed I can't see the file. Or is there some configuration option I'm missing?
...and somehow over a year later I came looking for a solution to this again, having completely forgotten I opened this issue :p
The issue now appears to be the opposite: the first time I press -, the cursor is at the top of the file listing, on top of Press ? for help. Subsequent presses highlight the directory I just came from.