centos7 升级安装 vim8.2(gvim)

卸载原有的vim

sudo yum remove vim-X11.x86_64 

github无法访问,使用gitee同步的包,

git clone https://gitee.com/mirrors/vim.git

安装依赖包

sudo yum install ncurses-devel.x86_64
sudo yum install libXt-devel.x86_64
sudo yum install gtk2-devel.x86_64

进入下载的vim目录,编译安装

cd vim/

./configure --with-features=huge \
--enable-gui=gtk2 \
--with-x \
--enable-fontset \
--enable-cscope \
--enable-multibyte \
--enable-pythoninterp \
--with-python-config-dir=/usr/lib64/python2.7/config \
--enable-python3interp \
--with-python3-config-dir=/usr/lib64/python3.6/config \
--enable-luainterp \
--enable-rubyinterp \
--enable-multibyte \
--prefix=/usr \
--with-compiledby="Core-kingdom"
make -j8

sudo make install

参数说明如下:

–with-features=huge:支持最大特性
–enable-rubyinterp:启用Vim对ruby编写的插件的支持
–enable-pythoninterp:启用Vim对python编写的插件的支持
-enable-python3interp:启用对python3编写的插件的支持
–enable-luainterp:启用Vim对lua编写的插件的支持
–enable-multibyte:多字节支持 可以在Vim中输入中文
–enable-fontset:支持字体设置
–enable-cscope:Vim对cscope支持 ,cscope是一款优秀的代码浏览工具
–enable-gui=gtk2:gtk2支持,也可以使用gnome,表示生成gvim
-–with-python-config-dir 指定 python配置 路径
–with-python3-config-dir 指定python3配置路径
–-prefix:编译安装路径
–with-compiledby:编译者

启动vim,已是8.2版本
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值