vim7爆出嚴重安全漏洞,升級到vim8,過程以下:git
yum remove vim -ygithub
yum install ncurses-devel -yvim
若是失敗,提示unknown host apt.sw.be,手工安裝:centos
wget http://mirror.centos.org/centos/7/os/x86_64/Packages/ncurses-devel-5.9-13.20130511.el7.x86_64.rpm安全
yum install ncurses-devel-5.9-13.20130511.el7.x86_64.rpmbash
git clone https://github.com/vim/vim.gitrem
cd vim/srcget
make
make installit
編輯文件:file
/usr/local/bin/vim /etc/profile.d/path.sh
----------------------------------------------------
#!/bin/bash
export PATH=$PATH:/usr/local/bin/vim
--------------------------------------------------
source /etc/profile.d/path.shvim