1, install the necessary lib,git and other 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 \ Ruby-dev git
2, uninstall the original version of Vim
sudo apt-get remove vim vim-runtime gvim
3,gitbub download Vim source code, to compile
CD ~ git clone https://github.com/vim/vim.git cd vim./configure--with-features=huge \--enable-multibyte \--ena BLE-RUBYINTERP \--enable-pythoninterp \--with-python-config-dir=/usr/lib/python2.7/config \--enable-perlinterp \-- ENABLE-LUAINTERP \--enable-gui=gtk2--enable-cscope--prefix=/usr make vimruntimedir=/usr/share/vim/vim74 sudo make Install
--help: Problems you may encounter:
Compile-time prompt no terminal library found
Checking for tgetent in-lcurses ... no
No terminal library found
Checking for tgetent () ... Configure:error:NOT found! You need to install a terminal library; For example ncurses. Or Specify the name of the library With–with-tlib. Workaround: Install ncurses sudo apt-get installation Libncurses5-dev
Ubuntu under compile vim (for Python)