卸载旧的VIM

sudo apt-get remove vim
sudo apt-get remove vim-runtime
sudo apt-get remove vim-tiny
sudo apt-get remove vim-common

安装VIM

sudo apt-get install ncurses-dev
sudo apt-get install vim-gtk
git clone --depth=1 https://github.com/vim/vim.git
cd .vim
./configure --with-features=huge --enable-multibyte --enable-gtk3-check --enable-rubyinterp=yes --with-python3-command=python3 --enable-python3interp=yes --enable-perlinterp=yes --enable-luainterp=yes --enable-cscope
sudo make -j2
sudo make install