I've been using [Neo]vim for a few months now with a number of plugins. One I decided to use was the built in
:Explore for my file-browsing needs.
I am having some serious issues with
Explore and need some help in resolving (or tell me if it is normal).
Note that the below issues happen in both
Ghost Buffers opening based on text clicked
With mouse-mode enabled, using
:Vex to open vertical explore and the focus of the window is in the Explorer window, if I use the mouse to click into a window/buffer of an already opened file and I click a line of code:
- A new blank buffer opens.
- The name of the buffer is the contents of the line I entered, in the form of
^Irun.Proxy()(the line of code I clicked on had
- The Explore window now is blank/empty with no history.
Resolution is to close the empty buffer (which, without a plugin to close the buffer without closing the window is a PITA), close the window for the Explorer, re-open Explorer (and split, again, if I had to close the window).
:Vex from a buffer of a sub-directory opens invalid file
This is not repeatable all the time... But it does happen.
vim from a project root folder, like:
cd ~/code/projectA/ vim
Now, open a file from a sub-directory:
:Vex and Explorer starts from that sub-directory because the current buffer is locates in
sub-folder/. Ok, not a big issue. I select
.. in Explorer to backup to the project root.
Here's the issue: from this same
:Vex window, if I open a file now at the project root, say
main.go, what opens is a buffer to a file located at
sub-folder/main.go instead of the file I selected in Explorer. this buffer is blank.
BUT... if I close that buffer, change focus back to Explorer and select
main.go again, now the correct file opens in a buffer.
Explorer inconsistent in keeping sub-folders open
Say I have
:Vex open with 3 sub-folders open. Once I switch to a buffer and edit/save a file, if I switch back to the existing
:Vex that I still have open and select any other sub-folder:
- The last sub-folder I opened collapses. Often times, it is even the sub-folder I am in and I want to open yet a deeper sub-folder.
- The sub-folder I selected does not open.
What happens is I have to re-open the sub-folders I previously had opened. But, not all. Some reopen expanded.
I have no found any way to have Explore retain its own state of open folders, let me switch to Explorer and explore further down the directory tree, without it collapsing everything else.
Those are the biggest issues I have with Explore and it is seriously affecting my
Last week I was code-pairing with a colleague and it horribly apparent how messed up this is. I've been getting so used to working around this issues that when he saw all of these issues, he was so turned off from ever trying vim in the future. "I heard vim was pretty good; but wow, that's horrible man. I couldn't stand it."
Please tell me if this is common, in which case I'll switch to Nerdtree or alike. Or, if this is just my setup. In which case, how I would I debug?
Using latest versions of vim and neovim from Homebrew.