How to upgrade vim to version 8 on CentOS 7

同学们好,现在很多vim重度使用者呢,追求把vim打造成一流的IDE,于是很多人想着把vim升级到8.0
但是编译安装呢又很麻烦,现在就分享一下使用yum把vim从7.0升级到8.0的经验

[root@p-devops ~]# 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?

1)Add this repository

[root@p-devops ~]# 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

[root@p-devops ~]# yum update vim*
After it is successful, your Vim should be version 8.0 now:

3)Check

[root@p-devops ~]# vim --version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Aug 2 2017 16:29:21)
Included patches: 1-839

转载于:https://blog.51cto.com/jinyan2049/2159167

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值