• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

centos7 升级安装 vim8.2gvim

武飞扬头像
芯王国
帮助2

卸载原有的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版本
学新通

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhiaiaje
系列文章
更多 icon
同类精品
更多 icon
继续加载