编译安装vim8.0

1.官网:https://vim.sourceforge.io/download.php

2

cd ~
git clone https://github.com/vim/vim.git
cd vim
./configure --with-features=huge \
            --enable-multibyte \
            --enable-rubyinterp=yes \
            --enable-pythoninterp=yes \
            --with-python-config-dir=/usr/lib/python2.7/config \
            --enable-python3interp=yes \
            --with-python3-config-dir=/usr/lib/python3.5/config \
            --enable-perlinterp=yes \
            --enable-luainterp=yes \
            --enable-gui=gtk2 \
            --enable-cscope \
            --prefix=/usr/local
make VIMRUNTIMEDIR=/usr/local/share/vim/vim80

3.

//设置Vim源码的编译属性

./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp --with-python-config-dir=/usr/lib64/python3.4/config-3.4m/ --enable-perlinterp --enable-gui=gtk2 --enable-cscope --enable-luainterp --enable-perlinterp --enable-multibyte --prefix=/usr/

sudo make install


其中参数说明如下: 
–with-features=huge:支持最大特性 
–enable-rubyinterp:启用Vim对ruby编写的插件的支持 
–enable-pythoninterp:启用Vim对python编写的插件的支持 
–enable-luainterp:启用Vim对lua编写的插件的支持 
–enable-perlinterp:启用Vim对perl编写的插件的支持 
–enable-multibyte:多字节支持 可以在Vim中输入中文 
–enable-cscope:Vim对cscope支持 
–enable-gui=gtk2:gtk2支持,也可以使用gnome,表示生成gvim 
–with-python-config-dir=/usr/lib/python2.7/config-i386-linux-gnu/ 指定 python 路径 
–prefix=/usr:编译安装路径


第二如果报You need to install a terminal library; for example ncurses.       Or specify the name of the library with --with-tlib.

sudo

yum  install  ncurses-devel

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值