Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何配置Vim WindowManager以自动聚焦文件窗口?_Vim - Fatal编程技术网

如何配置Vim WindowManager以自动聚焦文件窗口?

如何配置Vim WindowManager以自动聚焦文件窗口?,vim,Vim,如何配置WinManager以自动执行此操作: 关闭所有文件后,退出vim。 关闭一个文件或缓冲区后,显示下一个文件或缓冲区。 vim启动时,焦点转到文档窗口。 从WinManager文档:使用,从更新 这将解决您的第一个问题 至于其他人,我承认我很快扫描了3500多行vimL,没有看到任何让我印象深刻的东西可以用于其他问题,而没有深入研究代码和作者是如何做的。也许:帮助autocmd事件对你有帮助我想知道winManager是否还没有什么可以做的。但我可以在它的文档中找到任何东西。 g:per

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

关闭所有文件后,退出vim。 关闭一个文件或缓冲区后,显示下一个文件或缓冲区。 vim启动时,焦点转到文档窗口。
从WinManager文档:使用,从更新

这将解决您的第一个问题


至于其他人,我承认我很快扫描了3500多行vimL,没有看到任何让我印象深刻的东西可以用于其他问题,而没有深入研究代码和作者是如何做的。

也许:帮助autocmd事件对你有帮助我想知道winManager是否还没有什么可以做的。但我可以在它的文档中找到任何东西。
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