欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

centos7 安装vim8

程序员文章站 2024-03-11 10:45:37
...

更新yum

$ yum upgrade
$ yum update


下载git

sudo yum install git

升级vim以及gcc

升级gcc

sudo yum install centos-release-scl -y

sudo yum install devtoolset-3-toolchain -y

sudo yum install gcc-c++

sudo scl enable devtoolset-3 bash

升级vim

yum install ncurses-devel

wget https://github.com/vim/vim/archive/master.zip

unzip master.zip

cd vim-master

cd src/

./configure --with-features=huge -enable-pythoninterp --with-
python-config-dir=/usr/lib/python2.7/config

sudo make

sudo make install

export PATH=/usr/local/bin:$PATH

来自网络:http://blog.csdn.net/nzyalj/article/details/75331822