Vim Auto-complete plug-in Youcompleteme

Source: Internet
Author: User

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

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.