vimrc test for if_lua during vundle BundleInstall

1.4k Views Asked by At

I use the same .vimrc file on lots of systems. I'd like to bypass vundle installing some modules that I know won't work if 'if_lua' is not present.

Is there a vim script way of conditionally doing

Bundle 'Shougo/neocomplete.vim'

only if vim was compiled with lua to avoid the start up error:

$ 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

thx

1

There are 1 best solutions below

0
On BEST ANSWER
if has('lua')
    Bundle 'Shougo/neocomplete.vim'
end