centos7 安装vim8

更新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

你可能感兴趣的:(centos7 安装vim8)