centos7 升级安装 vim8.2(gvim)

centos7 升级安装 vim8.2(gvim),第1张

卸载原有的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/local/ \
--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版本

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/874643.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-13
下一篇 2022-05-13

发表评论

登录后才能评论

评论列表(0条)

保存