Recently I installed a new vim version on my system to get rid of the following warning:
neocomplete does not work with this version of Vim.
It requires Vim 7.3.885 or later with Lua support ("+lua").
Press ENTER or type command to continue
Steps
- Install homebrew if you don’t have it installed already.
- brew update
- brew install vim –with-lua
- create an alias vim pointing to /usr/local/bin/vim (as system vim is still there at /usr/bin/vim)
- on zsh you can add the following snippet to your .zshrc, to create an alias, if a brew installed vim is present in the system.
# use brew vim if present
/usr/local/bin/vim --version > /dev/null 2>&1
BREW_VIM_INSTALLED=$?
if [ $BREW_VIM_INSTALLED -eq 0 ]; then
alias vi="/usr/local/bin/vim"
fi
Cheers!