yum remove vim -y
yum install ncurses-devel python-devel -y
git clone https://github.com/vim/vim.git
cd vim/src
./configure --with-features=huge --enable-multibyte --enable-rubyinterp=yes --enable-pythoninterp=yes --with-python-config-dir=/usr/lib64/python2.7 --enable-python3interp=yes --with-python3-config-dir=/usr/local/python3/lib/python3.7/config-3.7m-x86_64-linux-gnu --enable-luainterp=yes --enable-cscope --prefix=/usr/local/vim
make
make install
export PATH=$PATH:/usr/local/vim/bin/
编译参数说明:
原文:https://www.cnblogs.com/yinliang/p/11635634.html