I'm using NERDTreeToggle function to open NERDTree window, when I'm closing it(with the same function), miniBufExplorer activates, but not the window which I'm been edited before opened NERDTree. How to fix this?
After I close NerdTree window, MiniBufExplorer being activated, not a previously active window(before toggling NerdTree)
267 views Asked by Artem Vovsia At
2
There are 2 answers
0
On
This boils down to the way Vim behaves; when you close a window, Vim does not move to the last active window. Unfortunately, there's no way around this, as it isn't really viable to remember the "last active window" from Vim's perspective; window ids are not constant in vim, so there's no reliable way to script the exact behaviour you want.
When I look at the plugins site I notice that miniBufExplorer was updated 2004 last time. Possibly it's outdated and has compatibility issues with vim 7. I'd suggest to replace it with buftabs, which works good for me.