Ubuntu 14.04安装vim8

1、查看系统是否有安装vim;如果有,先删除

dpkg -l | grep vim

2、从git上下载

git clone https://github.com/vim/vim.git

3、配置(之前将Python默认为Python3了,所以此处为支援Python3的配置)

./configure --with-features=huge --enable-multibyte --enable-rubyinterp=yes --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

4、安装

sudo make VIMRUNTIMEDIR=/usr/share/vim/vim81
sudo make install

5、设置软链接

sudo ln -s /usr/bin/vim /usr/bin/vi

猜你喜欢

转载自www.cnblogs.com/BrianChen/p/10803869.html