源码
sudo apt install git
git clone https://github.com/vim/vim.git
cd vim
./configure
sudo apt install ncurses-dev
sudo yum install ncurses-devel
make
sudo make install
ppa
sudo add-apt-repository ppa:jonathonf/vim
sudo apt update
sudo apt install vim
sudo apt remove vim
sudo add-apt-repository --remove ppa:jonathonf/vim
检查
vim --version