ubuntu16.04 Upgrade VIM 8.0

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.