1. Preface
I began to touch vim from Ubuntu, under window began to understand the configuration of the Gvim plug-in, but under window there is a problem is to build vim itself is very difficult (I am not enough, the YCM plugin under Windows has never been successful.) ), causing a lot of missing functions. Refer to the more reliable vim configuration here, the author of this article is based on the Linux teaching. Having had enough of the missing features in Windows Vim, I decided to return to the new ubuntu16.04 and start configuring my vim.
However, in fact, the above link vim configuration is still a certain problem, do not know the author's problem or the problem of my machine, source code compiled vim error a lot, because there is always no way to get on the Perl,ruby,lua interface, after 3 hours of online groping, I finally successfully made the interface of Vim, in order to save everyone's time, but also for the convenience of their own inspection, so, here to leave a little note.
2, pro-test installation process Brief
First, the above link in the tutorial in the Vim compilation, Config command has a certain error ... Here are some additions:
1, first of all, to install their own language support on Ubuntu, Python,ruby and so on. Then, you have to install the corresponding dependency package, using Apt-get to obtain ... Install the corresponding
Python-dev, Python3-dev, Liblua5.1-dev, Ruby-dev
(If Perl is needed, add a Libperl-dev) (PS: If the corresponding package is not found, there may be a problem with the software source, and may be the wrong name)
2, 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
These libraries have to be installed ....
3, install gtk2-devel should use: sudo apt-get install Libgtk2.0-dev
Should be used when installing Gtk3-devel: sudo apt-get install Libgtk-3-dev
4. Start compiling, compiling the config command own test is
./configure-- with-features=Huge--Enable-gui=Gtk2--Enable-cscope --Prefix=/usr--Enable-python3interp=Yes--Enable-pythoninterp=Yes-- with-python-config-dir=/usr/lib/python2. 7/config/ --Enable-perlinterp=Yes--Enable-luainterp=Yes-- with-lua-prefix=/usr/ --Enable-rubyinterp=Yes
(Here are a lot more things than the tutorial above, compiled with support for Python,python3,lua, Perl, Ruby)
(The above code is the one I spent nearly 2 hours to get out of ...) )
(recently found a pit ...) Before due to too much, At the same time in the Config reference python3.5 and Python2 Library, the final configuration found in Python written plug-ins are not used, I feel that there is a little conflict between the two, so in the above command there is no use of Python3 library, pro-Test after compiling success, if the reader needs python3 support, chain When you pick up the library, you can add the following sentence and remove the reference command for the Python2 library.
--with-python3-config-dir=/usr/lib/python3.5/config/
Make it next, make install
3, Note: 1, about the compilation command under Ubuntu small white Understanding:
1). The./config command can be used more than once, but the resulting compilation information is the result of the last execution of this command and cannot be executed more than once./config to perform the function overlay, in layman's terms, is once over ....
2) What should I do if I want to compile multiple times?
Enter the SRC directory inside the source folder and execute the command:
make distclean
Config,make and make install again after execution
2, about the vim configuration under Ubuntu
There is a. VIMRC under the user's home directory (/home/username).
/etc There is also a VIMRC
Generally only the user home directory under the. VIMRC this profile is valid only for users
Use Su-username for configuration to take effect after change (e.g. Su-zhang3)
. VIMRC use Ls-al for hidden files to view
Home directory, automatically generated by the. Viminfo,. VIMRC and. vim/to build their own
The front has a. can be seen as a hidden file, so use Ls-al to see
3. Post-description
This article is just a supplement to the GitHub tutorial on the link at the beginning of the article, which can be easier to understand if you refer to the tutorial. Because the configuration of vim is too personal, for beginners like me, I am through this tutorial to get started ...
(send a link again)
This method is I after a long time to grope after groping, may be in the process of the recollection of a little bit of errors and loopholes, do not rule out the wrong situation. However, if you are also a beginner, and for similar problems to get burned, this method may wish to try.
Vim toss up really is very troublesome, I hope you can continue to explore VIM junior enthusiasts, enjoy VIM!
Ubuntu under the source code to compile Vim's pro-test method