我在许多系统上都使用相同的.vimrc文件。我想绕过vundle安装一些我不知道如果'if_lua'不存在的模块。
是否有条件执行vim脚本的方式
Bundle 'Shougo/neocomplete.vim'
仅当vim是用lua编译以避免启动错误时:
$ vim myprogram.c
neocomplete does not work this version of Vim.
It requires Vim 7.3.885 or above and "if_lua" enabled Vim.
Press ENTER or type command to continue
谢谢
if has('lua')
Bundle 'Shougo/neocomplete.vim'
end
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句