New environment configuration and use Vim guide

Source: Internet
Author: User
Tags git clone

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

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.