删除原来的vim -> sudo yum remove vim
sudo git clone https://github.com/vim/vim.git
cd vim/src
sudo ./configure --with-features=huge --enable-multibyte --enable-rubyinterp=yes --enable-python3interp=yes --prefix=/usr/local/vim8 --disable-selinux --enable-cscope --with-python3-command=python3.6
sudo make
sudo make install
原文:https://www.cnblogs.com/lodger47/p/14716205.html