我在终端上安装了yadr,但是在打开Vim时仍然出现以下错误:
neocomplete does not work this version of Vim.
It requires "if_lua" enabled Vim(7.3.885 or above).
编辑:
最佳答案
此问题已解决:
brew install macvim --with-cscope --with-lua --HEAD
brew uninstall vim
brew install vim --with-lua
如果运行前面的命令后它仍然不起作用:
当您使用
vim
安装brew
时,可能未将其安装到“正确”的位置。在安装过程中查看终端输出(brew install vim
)可以告诉您该位置。对我来说,brew
在此处安装了vim
:/usr/local/Cellar/vim/7.4.712
而当我运行
which vim
时,我得到以下结果:$ which vim
/usr/bin/vim
因此,您要做的就是:
sudo cp /path/to/newly/installed/vim /path/to/old/vim
就我而言,我做到了:
sudo cp /usr/local/Cellar/vim/7.4.712 /usr/bin/vim
关于vim - Vim和lua有问题吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26724859/