1. Download源码
git clone [email protected]:vim/vim.git
2. Compile
1. Installing dependent software
sudo apt-get install Libncurses5-dev libgnome2-dev libgnomeui-dev \ libgtk2.0-dev Libatk1.0-dev libbonoboui2-dev \ Libcai Ro2-dev libx11-dev libxpm-dev libxt-dev python-dev \ Python3-dev ruby-dev lua5.1 Lua5.1-dev gi
2. Remove the already installed Vim
sudo apt-get remove vim-tiny vim-common vim-gui-common Vim-nox
Ubuntu has to add the following
sudo apt-get remove vim-tiny vim-common vim-gui-common Vim-nox
3. Configure vim, where the Python path to be specific, GUI non-Ubuntu for Gtk2,ubuntu with GTK2 will have warning, watching the frustration
./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. Compile, the path depends on the version number in the Readme
Make Vimruntimedir=/usr/share/vim/vim80
5. Install Vim
sudo apt-get install Checkinstall
sudo checkinstall
3.
4.
5.
6.
7.
New environment configuration and use Vim guide