centos升级vim版本_如何在 CentOS 7上将 vim 升级到版本 8 ?

centos升级vim版本

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

CentOS 7上的vim是版本7.4,具有补丁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?

如何将其升级到最新的主要版本版本8?

Update on Oct 23 2018: the repository introduced in the original method is not available any more, you should not follow the method any more.

2018年10月23日更新 :原始方法引入的存储库不再可用,您不应再遵循该方法。

Check other packages, such as this one.

检查其他软件包,例如这一个 。

Or compile Vim by yourself. Checkout the source code at https://github.com/vim/vim by

或自己编译Vim。 通过https://github.com/vim/vim签出源代码

git clone https://github.com/vim/vim

git clone https://github.com/vim/vim

and build and install it by

并通过构建并安装它

1. make # to run configure, compile and link
2. make install # to do installation in /usr/local

1.使#运行配置,编译和链接
2. make install#在/ usr / local中进行安装

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

您可以在Fedora Copr的Vim 8构建中使用此CentOS 7存储库。

By these commands on CentOS 7.

通过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:

将Vim升级到vim 8:

# yum update vim*

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

成功后,您的Vim现在应该是8.0版:

# 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)回答。

翻译自: https://www.systutorials.com/how-to-upgrade-vim-to-version-8-on-centos-7/

centos升级vim版本

你可能感兴趣的:(centos升级vim版本_如何在 CentOS 7上将 vim 升级到版本 8 ?)