First, install the dependent
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 libperl-dev git
Liblua5.1-dev
Second, install Vim
CD ~
git clone https://github.com/vim/vim.git
To compile
CD VIM
./configure--with-features=huge \
--enable-multibyte \
--enable-rubyinterp=yes \
--enable-pythoninterp=yes \
--with-python-config-dir=/usr/lib/python2.7/config \
--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
Make Vimruntimedir=/usr/share/vim/vim80
To uninstall, execute the following command
sudo apt-get install Checkinstall
CD ~/vim
sudo checkinstall
Final make install Complete installation
Third, set Vim as the default editor
sudo update-alternatives--install/usr/bin/editor editor/usr/bin/vim 1
sudo update-alternatives--set editor/usr/bin/vim
sudo update-alternatives--install/usr/bin/vi vi/usr/bin/vim 1
sudo update-alternatives--set vi/usr/bin/vim
Four, perform Vim--version
If you don't get Gvim's job (Ubuntu 12.04.1 LTS), please try--enable-gui=gtk2 instead--enable-gui=gnome2
./configure--with-features=huge \
--enable-multibyte \
--enable-rubyinterp=yes \
--enable-pythoninterp=yes \
--with-python-config-dir=/usr/lib/python2.7/config \
--enable-python3interp=yes \
--with-python3-config-dir=/usr/lib/python3.5/config \
--enable-perlinterp=yes \
--enable-luainterp=yes \
--enable-gui=gnome2--enable-cscope--PREFIX=/USR
This article is from the "Ride a Pig to Travel" blog, please be sure to keep this source http://songqinglong.blog.51cto.com/7591177/1970261
ubuntu16.04 Upgrade VIM 8.0