youcompleteme

文章目录

YouCompleteMe

使用vundle实在太慢或者出错,所以自己直接clone

1
2
3
$ cd .vim/bundle/
$ git clone https://github.com/Valloric/YouCompleteMe.git
$ git submodule update --init --recursive

编译一下,–system-libclang是使用系统的clang,不需要另行下载

1
2
$ cd YouCompleteMe
$ ./install.sh --clang-complete --system-libclang

配置.vimrc

1
$ echo let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py' >> ~/.vimrc