1、downloar tar.gz from https://github.com/vim/vim/releases
2、tar xvf vim.tar.gz
3、cd vim_dir
4、配置安装路径/usr/local
./configure --prefix=/usr/local&&make && make install
5、利用alias将vim指令定向到刚刚安装的vim8,同时修改.bashrc确保之后一直能生效
alias vim='/usr/local/bin/vim'
echo "alias vim='/usr/local/bin/vim' " >> ~/.bashrc
6、vim -version
curl -sLf https://spacevim.org/install.sh | bash
vim自动安装插件
参考以下链接配置
https://spacevim.org/use-vim-as-ide/
https://spacevim.org/use-vim-as-a-c-cpp-ide/