- 安装所有需要的库,包括git。
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 ruby-dev mercurial
-
删除安装过的vim
sudo apt-get remove vim vim-runtime gvim
-
从源代码安装vim
cd ~ git clone git://github.com/vim/vim.git
cd vim ./configure --with-features=huge
--enable-multibyte --enable-rubyinterp --enable-pythoninterp --with-python-config-dir=/usr/lib/python2.7/config --enable-perlinterp --enable-luainterp --enable-gui=gtk2 --enable-cscope --prefix=/usr
需要python3的? make VIMRUNTIMEDIR=/usr/share/vim/vim74 sudo make install