Install YouCompleteMe plugin for vim under Ubuntu

Prerequisites##

installation##

The first step is to install YouCompleteM using Vundle

Add the following in .vimrc

Plugin 'Valloric/YouCompleteMe'

Then pull the source code (or :PluginInstall also works)

$ cd ~/.vim/bundle
#. /install.py needs to be cloned, you cannot download the zip archive directly
$ git clone https://github.com/Valloric/YouCompleteMe.git

The second step is to pull dependencies (including tools that may be used)

$ cd YouCompleteMe
$ git submodule update --init --recursive
$ sudo apt install cmake
$ sudo apt install clang
$ sudo apt-get install python3-dev

The third step, installation code prompt

# Only install the version that supports Python:
$ ./install.py

# Install the version that supports the C language family:
$ ./install.py --clang-completer

# Install the version that supports go language:
$ ./install.py --go-completer

# Install versions that support all languages of Js, Java, Python, and go:
$ ./install.py --all

The fourth step is to add the .vimrc configuration

$ vim .vimrc
let g:ycm_global_ycm_extra_conf='~/.vim/.ycm_extra_conf.py'

The fifth step, test

references##

Recommended Posts

Install YouCompleteMe plugin for vim under Ubuntu
Install PyTesser under ubuntu 14.04 for OCR recognition
Install apache+PHP under Ubuntu
Install node.js under Ubuntu
Install python3.6 under Ubuntu 16.04
Install mysql under Ubuntu 16.04
Install Thrift under ubuntu 14.10
Install OpenJDK10 under Ubuntu
2018-09-11 Install arduino under Ubuntu
Install ROS under ROS Ubuntu 18.04[2]
Install MySQL under Ubuntu
Install Yarm-PM2 under Ubuntu
How to install vim editor under Linux (Ubuntu 18.04)
Install server-side Shadowsocks under Ubuntu 16.04
Install rgl package under Ubuntu
Use QQ under Ubuntu 13.10, suitable for 14.10
Install 3 single-cell R packages under Ubuntu
Install and deploy Gerrit under Ubuntu
Install MySQL under Ubuntu 18.04 (graphic tutorial)
Install JDK1.8 original under Ubuntu Kylin
Small tool: install screenshot tool under ubuntu
Install nodejs and npm under Ubuntu 16.04
How to install Audacious under Ubuntu
How to install Tensorflow under ubuntu 16.04
Compile and install QEMU under Ubuntu
Solution for Postgresql uninstall error under Ubuntu
Install linux (ubuntu) dual system under windows system
Install Ubuntu with Parallels Desktop under Mac
Three ways to install software under Ubuntu
Install utility software collection under Ubuntu system
ubuntu18.04 install python2
ubuntu18.04 install docker
ubuntu12.04 install python3
Ubuntu install guide
Install the old version of seurat under Ubuntu
ubuntu install nodejs
The solution to the failure to install .deb under Ubuntu 16.04
ubuntu 16 install asp.net
ubuntu install leanote
ubuntu install Jenkins
Simple and clean install remote login for ubuntu18
Steps to add toolkit for Matlab_Linux under ubuntu
docker install ubuntu
ubuntu install elasticsearch
ubuntu16.0.1 install pagoda
ubuntu18.04 install python
ubuntu 18.04 install teamviewer
How to install gcc compiler faster under Ubuntu
ubuntu install sendmail
Install win7 and archlinux on hard disk under ubuntu
Install nvidia graphics driver under Ubuntu (easy installation method)
Compile and install OpenJDK8 from source code under Ubuntu 18.04.1
Install ubuntu dual system under win10 (no U disk)
Cpp web (1) Install and use Crow service under Ubuntu
How to install two versions of OpenCV under ubuntu?
Manual for Ubuntu Installation
install vscode on ubuntu18
Install mysql-pytho in Ubuntu
ubuntu install zsh terminal
Install Redis on Ubuntu
Install R4 on ubuntu20