Fedora 27 Install Vim plugin Youcompleteme

Source: Internet
Author: User
Tags git clone


1. Youcompleteme is a powerful vim plug-in, it can realize the automatic completion of the code, jump to the definition and other functions, and support Java, Python, go, c family and many other languages. Website: https://github.com/Valloric/YouCompleteMe2. Its GitHub website details the steps to install the plugin, but since the plugin relies on a lot of software and libraries, a little discrepancy will go wrong, so the plugin is also known as the most difficult to install vim plugin. After a day of painful torment on the CentOS6.8 system, I finally gave up the CentOS6.8 and turned to the fedora27 to re-toss (in fact, because I had the centos blown up). This time the installation is quite smooth. The installation process is documented below. 3. First to check the version of Vim, the current need for more than 7.4.1578,fedora27 vim version is 8.0, through. If your system is below the required version, you need to upgrade vim.4. Follow the official website recommendation, use Vundle this vim plug-in Manager to install Youcompleteme, need to install Vundle first. There is basically no problem following the method here: Https://github.com/VundleVim/Vundle.vim#about Attention is given to the Vundle official website. The VIMRC example contains a lot of extra plugins, and only two of us need to be loaded: Plugin ' Vundlevim/vundle.vim ', and Plugin ' Valloric/youcompleteme ', we want to make sure that these two lines are added in the. vimrc file, and the others are optional. If it is small white, it is better to first delete the others to avoid unnecessary trouble. Other optional steps can be omitted first. 5. Wait a long time after------maybe soon, my soon, less than a minute, is because the beginning of the error. Error: Youcompleteme unavailable:no module named XXX, the specific module name has been forgotten. At this point refer to the website: Https://www.jianshu.com/p/d908ce81017a?nomobile=yes ' install ycm through git ' step, also refer to YCM official website's ' Full Installation Guide ' Instructions in: If You don't install YCM with Vundle, make sure you have run git submodule update--init--recursive after checking out the YCM repository (Vundle would do this for you) to fetch YCM ' s dependencies. It is pointed out here that if the installation is not YCM by Vundle, git clone YCM is required, then git submodule update--init--recursive This command to get the YCM dependency package. Although I used the vundle to install YCM, but it seems that there is no installation success, it is to meet the ' not through the Vundle to install ' this condition. Follow the git submodule Update command, after about more than 10 minutes, the execution completes without error. Open Vim, and there is no previous error stating that the YCM plugin has been installed. Also note that I did not follow the steps above to install Libclang, nor compile the Ycm_core library, I am just git submodule update, and then the 6th step Pinterest. 6. To this, you can follow the YCM official website next steps, in order to install the development tools and CMake, install Python headers, compile ycm. I'm using a c-family semantic support. Are smooth, there has been no upgrade glibc in CentOS, upgrade gcc and other issues. 7. Open vim to edit a python file and find that it is ready for code completion. Great job!


Fedora 27 Install vim plugin 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.