Good students, now a lot of vim heavy users, the pursuit of vim into a first-class IDE, so many people want to upgrade vim to 8.0
But compiling and installing is a hassle, now share the experience of using Yum to upgrade vim from 7.0 to 8.0
[Email protected] ~]#vim --version
Vim-vi Improved 7.4 (compiled DEC 21 2016 17:00:20)
Included patches:1-160
How to upgrade it to version 8 which is the latest major version?
1) Add this repository
[Email protected] ~]#curl -L https://copr.fedorainfracloud.org/coprs/mcepl/vim8/repo/epel-7/mcepl-vim8-epel-7.repo -o /etc/yum.repos.d/mcepl-vim8-epel-7.repo
2) Upgrade vim to vim 8
[Email protected] ~]#yum update vim*
After it was successful, your Vim should be version 8.0 now:
3) Check
[Email protected] ~]#vim --version
Vim-vi Improved 8.0 (SEP, compiled 2 2017 16:29:21)
Included patches:1-839
How to upgrade Vim to version 8 on CentOS 7