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?

asked Aug 8 by anonymous

1 Answer

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 Aug 8 by Eric Z Ma (42,870 points)

Please log in or register to answer this question.

Related questions

1 answer
1 answer
1 answer
asked Sep 30, 2016 by anonymous
1 answer
asked Sep 29, 2016 by anonymous
1 answer
1 answer
asked Sep 30, 2016 by anonymous
Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...