Ubuntu VIM7 compilation Overview

Source: Internet
Author: User
The key is to install the dependency package. The reason why I first tried to compile vim7 is that I do not know which packages vim7 depends on, which causes the compilation to fail. after sudoapt-getbuild-depvim-gtk obtains the vim7 source code, we start to get the source code of vim7. svncohttps: // configure the dependency package
This step is the key. The reason why I first tried to compile vim7 is that I did not know which packages vim7 depends on, and the compilation was always unsuccessful.

Sudo apt-get build-dep vim-gtk

Obtain vim7 source code
After the previous steps are successful, we start to get the source code of vim7.

Svn cohttps: // svn.sourceforge.net/svnroot/vim/vim7

This command will create a vim7 directory in your personal directory. which is the latest source code of vim7. if an error occurs while executing the command, the command svn cannot be found, that is, you have not installed subverion. You can use sudo apt-get install subversion to install it.

Modify Makefile
Now go to the vim7 directory cd vim7/src. modify the makefile file and configure the compilation option gvim Makefile. in fact, some configuration items are reversed. I have modified the following parts. for more information, see.

CONF_OPT_GUI = -- enable-gui = gtk2 # supported by gtk2, you can also use gnome
Conf_opt_cs1_= -- enable-cs1_# cs1_support
CONF_OPT_PYTHON = -- enable-pythoninterp # python support
CONF_OPT_MULTIBYTE = -- enable-multibyte # dual-character support
CONF_OPT_INPUT = -- enable-xim # input method support
CONF_OPT_OUTPUT = -- enable-fontset # dual-character support
CONF_OPT_FEAT = -- with-features = huge # maximum feature support
CONF_OPT_COMPBY = "-- with-compiledby = Karron Qiu "# Compiler

Compile
After saving the file, you can start compiling. Just input make. Wait a moment and have a cup of tea. After about a few minutes (depending on the machine configuration, the compilation may take some time.

Make

Install

Good installation.

Sudo make install

If the above steps are successful, Congratulations. Now you can enter the vim7 world. Enter gvim and you can see that the version number is changed to aaaa. then you can run the command: help version7 to check the new features of vim7.

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.