centos升级vim
vim7爆出严重安全漏洞,升级到vim8,过程如下:
yum remove vim -y
yum install ncurses-devel -y
如果失败,提示unknown host apt.sw.be,手工安装:
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.rpm
git clone https://github.com/vim/vim.git
cd vim/src
make
make install
编辑文件:
/usr/local/bin/vim /etc/profile.d/path.sh
----------------------------------------------------
#!/bin/bash
export PATH=$PATH:/usr/local/bin/vim
--------------------------------------------------
source /etc/profile.d/path.sh
vim
作者:Lave Zhang
出处:http://www.cnblogs.com/lavezhang/
本文版权归作者所有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。