1.下载源码
git clone [email protected]:vim/vim.git
2.编译
1.安装依赖软件
sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev \ libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \ libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev \ python3-dev ruby-dev lua5.1 lua5.1-dev gi
2.删除已经安装的vim
sudo apt-get remove vim-tiny vim-common vim-gui-common vim-nox
Ubuntu要加上以下的
sudo apt-get remove vim-tiny vim-common vim-gui-common vim-nox
3.配置vim,其中python路径要具体看,gui非ubuntu为gtk2,ubuntu用gtk2会有警告,看着闹心
./configure --with-features=huge \
--enable-multibyte \
--enable-rubyinterp \
--enable-pythoninterp \
--with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \
--enable-python3interp \
--with-python3-config-dir=/usr/lib/python3.4/config-3.4m-x86_64-linux-gnu \
--enable-perlinterp \
--enable-luainterp \
--enable-gui=gtk2 --enable-cscope --prefix=/usr --enable-fontset
4.编译,路径要看readme里的版本号
make VIMRUNTIMEDIR=/usr/share/vim/vim80
5.安装vim
sudo apt-get install checkinstall
sudo checkinstall
3.
4.
5.
6.
7.