我正在使用 NERDTreeToggle 函数打开 NERDTree 窗口,当我关闭它时(使用相同的函数),miniBufExplorer 会激活,但不是我在打开 NERDTree 之前编辑过的窗口。如何解决这个问题?
问问题
263 次
2 回答
0
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.
于 2013-04-16T14:15:38.953 回答