Objective
Valloric/youcompleteme can be said to be one of the most complex of vim installation, but once installed, it is very useful. Youcompleteme abbreviation YCM
In the process of installation toss-up, I once again realized that, in addition to the official website tutorial, Baidu on the course are spicy chicken, are pits!
Installation Preparation:
1. Ensure that build-essential and CMake are installed. YCM is a compiled complement plug-in, and these two tools are compiled ycm.
sudo apt-get install build-essential CMake
2. Ensure that the Python-dev and Python3-dev are installed
sudo apt-get install Python-dev Python3-dev
3. Download YCM
We use the Vundle plugin to download the ycm. Vundle is the VIM plugin to manage VIM plug-ins, installation is very simple, installation of Vundle tutorial is attached, we can also search the Internet on their own.
Add the following statement to the VIMRC to have ycm added to the Vundle management list:
' Valloric/youcompleteme '
Then execute in vim, download and install the plugin in the list. Of course, this includes the ycm we just added. This is a lengthy process that can take up to 10 minutes and wait patiently.
: Bundleinstall
4. Compiling ycm
The above steps just download the YCM, but it hasn't been compiled yet. Compile the YCM using the following command. In the following example, only support for C + + complements is added.
CD ~/.vim/bundle/youcompleteme. /install.py--clang-completer
Support for other languages is available, and you can add them as needed. If you want to install all languages, you can use the./install.py--all
C # Support:install Mono and add--omnisharp---gocode----tern---racer-completer
5. Configuration Engineering
If it goes well, you have completed the installation of YCM.
Vim Auto-complete plug-in Youcompleteme