How to upgrade vim to version 8 on CentOS 7?

vim on CentOS 7 is version 7.4 with patches 1-160:

$ vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Dec 21 2016 17:00:20)
Included patches: 1-160

How to upgrade it to version 8 which is the latest major version?

You may use this CentOS 7 repository on Fedora Copr for Vim 8 builds.

By these commands on CentOS 7.

Add this repository:

# 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

Upgrade Vim to vim 8:

# yum update vim*

After it is successful, your Vim should be version 8.0 now:

# vim --version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Aug  2 2017 16:29:21)
Included patches: 1-839
Answered by Eric Z Ma.

Eric Z Ma

Eric is a father and systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

Leave a Reply

Your email address will not be published. Required fields are marked *