youcompleteme 自动补全

1. 拷贝配置文件

cp ~/.vim/bundle/YouCompleteMe/cpp/ycm/.ycm_extra_conf.py ~/.vim/.ycm_extra_conf.py

2. 修改配置文件~/.vim/.ycm_extra_conf.py

 添加:

'-isystem',
'/usr/include',
'-isystem',
'/usr/local/include'

3. 修改~/.vimrc

let g:ycm_global_ycm_extra_conf='~/.vim/.ycm_extra_conf.py'
let g:ycm_seed_identifiers_with_syntax = 1  "C/C++关键字自动补全

posted on 2016-05-18 10:41  chenzc  阅读(386)  评论(0编辑  收藏  举报

导航