Vim和lua的问题?

Kev*_*Lin 21 vim terminal lua github neocomplete

我在我的终端上安装了yadr,但是当我打开Vim时,我一直收到以下错误:

neocomplete does not work this version of Vim.
It requires "if_lua" enabled Vim(7.3.885 or above).
Run Code Online (Sandbox Code Playgroud)

编辑:

  • 将Vim升级到版本7.4.493但仍然出现错误.
  • 运行OS X Yosemite

Kev*_*Lin 30

这解决了它:

brew install macvim --with-cscope --with-lua --HEAD
brew uninstall vim
brew install vim --with-lua
Run Code Online (Sandbox Code Playgroud)


如果在运行上一个命令后仍然无效:

安装vimbrew,它可能没有安装到"正确"的位置.在安装期间查看终端输出(brew install vim)应该告诉您这个位置.对我来说,brew安装vim在这里:

/usr/local/Cellar/vim/7.4.712
Run Code Online (Sandbox Code Playgroud)

我跑的时候which vim得到了以下结果:

$ which vim
/usr/bin/vim
Run Code Online (Sandbox Code Playgroud)

所以你要做的就是:

sudo cp /path/to/newly/installed/vim /path/to/old/vim
Run Code Online (Sandbox Code Playgroud)

在我的情况下,我做了:

sudo cp /usr/local/Cellar/vim/7.4.712 /usr/bin/vim
Run Code Online (Sandbox Code Playgroud)