1.先卸载老的vim
1
yum remove vim-* -y
2.下载第三方yum源
1
wget -P /etc/yum.repos.d/ https://copr.fedorainfracloud.org/coprs/mcepl/vim8/repo/epel-7/mcepl-vim8-epel-7.repo
3.安装vim
1
yum -y install vim-enhanced
4.验证vim版本
1
2
3
4
5rpm -qa |grep vim
vim-enhanced-8.0.0704-1.1.26.el7.centos.x86_64
vim-common-8.0.0704-1.1.26.el7.centos.x86_64
vim-minimal-8.0.0704-1.1.26.el7.centos.x86_64
vim-filesystem-8.0.0704-1.1.26.el7.centos.x86_64