0

如何将 WinManager 配置为自动执行此操作:

  • 当所有文件都关闭时,退出 vim。
  • 当一个文件(或缓冲区)关闭时,显示下一个。
  • vim 启动时,焦点转到文档窗口。
4

1 回答 1

0

来自 WinManager 文档:(使用脚本 #1440,从脚本 #95更新)

g:persistentBehaviour: if set to 0, then as soon as you quit all the files      
  and only the explorer windows are the ones left, vim will quit. the         
  default is 1, which means that the explorer windows persist even if         
  they are the only ones visible.

let g:persistentBehaviour=0

哪个应该解决您的第一个问题。

至于其他的,我承认我很快扫描了 3500 多行 vimL,没有发现任何让我印象深刻的对其他问题的调整,而无需更深入地了解代码和作者是如何做事的。

于 2012-06-29T11:43:26.663 回答