The ubuntu VIM7 Compilation Guide-general Linux technology-Linux programming and kernel information. The following is a detailed description. The alpha version of vim7 has been released for a long time, and many features have been added, such as tabpage, Automatic completion, and spelling check, which have greatly improved. To get a taste of it, we can obtain the source code for compilation.
The compilation was successful today, and it was very smooth. It was really difficult for the meeting, but not for the difficulties.
I listed my compilation process below, hoping to help my friends who want to compile vim7. (Note: This is the first time that I have successfully compiled the software in linux. It is also the first software I have compiled myself. Even if I want to use it, it is no problem ).
Install the compilation tool
The first step is to install the compilation tool.
Sudo apt-get install build-essential
Modify Source
Then modify the source code and add the source code. I added the following source code.
5.10 of the source.
Deb-src http://ubuntu.cn99.com/ubuntu/ breezy main restricted universe transport-src http://ubuntu.cn99.com/ubuntu/ breezy-updates main restricted universe transport-src http://ubuntu.cn99.com/ubuntu/ breezy-security main restricted universe transport-src http://ubuntu.cn99.com/ubuntu/ breezy-backports main limit universe multiverse
6.06 of the source.
Deb_src http://ubuntu.cn99.com/ubuntu/ dapper main restricted universe multiversedeb_src http://ubuntu.cn99.com/ubuntu/ dapper-updates main restricted universe transport http://ubuntu.cn99.com/ubuntu/ dapper-security main restricted universe transport http://ubuntu.cn99.com/ubuntu/
Update the package Index
Sudo apt-get update
Install dependency packages
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 co https://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, which can also be used
Gnomeconf_opt_cs.pdf = -- enable-cs.pdf
# Csf_supports CONF_OPT_PYTHON = -- enable-pythoninterp
# Python supports CONF_OPT_MULTIBYTE = -- enable-multibyte
# Double-character support for CONF_OPT_INPUT = -- enable-xim
# CONF_OPT_OUTPUT = -- enable-fontset
# CONF_OPT_FEAT = -- with-features = huge
# CONF_OPT_COMPBY = "-- with-compiledby = Karron Qiu "
# Compiled
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.
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