【发布时间】:2014-05-25 16:25:17
【问题描述】:
我在很多系统上都使用相同的 .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
谢谢
【问题讨论】:
-
vim 插件最酷的地方在于你可以阅读它们的源代码。您可以通过打开
neocomplete/plugin/neocomplete.vim并搜索错误消息来了解 neocomplete 是如何检查的。