Skip to content

Instantly share code, notes, and snippets.

@reilg
Forked from yevrah/Upgrade vim
Created September 17, 2018 16:08
Show Gist options
  • Save reilg/26bdb10800ec3049d8fc8478e93d1d74 to your computer and use it in GitHub Desktop.
Save reilg/26bdb10800ec3049d8fc8478e93d1d74 to your computer and use it in GitHub Desktop.
Update to Vim8 on Centos 7
# You may use this CentOS 7 repository on Fedora Copr for Vim 8 builds.
# https://copr.fedorainfracloud.org/coprs/mcepl/vim8/
#
# Run these commands on CentOS 7.
# Add this repository:
sudo 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:
sudo yum update vim*
# After it is successful, your Vim should be version 8.0 now:
vim --version
# You should see...
# VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Aug 2 2017 16:29:21)
# Included patches: 1-839
@reilg
Copy link
Author

reilg commented Sep 17, 2018

rpm -Uvh http://mirror.ghettoforge.org/distributions/gf/gf-release-latest.gf.el7.noarch.rpm
rpm --import http://mirror.ghettoforge.org/distributions/gf/RPM-GPG-KEY-gf.el7
yum -y remove vim-minimal vim-common vim-enhanced sudo
yum -y --enablerepo=gf-plus install vim-enhanced sudo

For Centos 7 and up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment