vim --version
)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
Recommended Posts