1

我正在使用 NERDTreeToggle 函数打开 NERDTree 窗口,当我关闭它时(使用相同的函数),miniBufExplorer 会激活,但不是我在打开 NERDTree 之前编辑过的窗口。如何解决这个问题?

4

2 回答 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 回答
0

当我查看插件站点时,我注意到 miniBufExplorer 上次更新是 2004 年。可能它已经过时并且与 vim 7 存在兼容性问题。我建议用buftabs替换它,这对我很有用。

于 2012-08-20T20:12:50.980 回答