https://blog.csdn.net/u012724150/article/details/70239090
vim重新编译生成支持lua
官方下载:wget ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2
tar -xf vim-7.4.tar.bz2
cd vim74
设置
./configure --prefix=/usr --with-features=huge --enable-rubyinterp --enable-pythoninterp --enable-luainterp --with-lua-prefix=/usr/local >log
1
可以将输出重定向到log文件中,查看configure输出:
cat log | grep lua
spch2008@ubuntu:~/vim74$ cat log | grep lua
checking --enable-luainterp argument... yes
checking --with-lua-prefix argument... /usr/local
checking --with-luajit... no
checking for lua... /usr/local/bin/lua
checking if lua.h can be found in /usr/local/include...yes
checking if link with -L/usr/local/lib -llua is sane... yes
如果lua.h没有找到 就重新编译安装一下lua 直接yum安装是有问题的
make
make install
//查看vim版本和编译时间以及是否支持lua
vim --version
//卸载
make uninstall
---------------------
作者:Saber丶丶
来源:CSDN
原文:https://blog.csdn.net/u012724150/article/details/70239090
版权声明:本文为博主原创文章,转载请附上博文链接!