〖Linux〗VIM youcompleteme 自动补全 #include 文件名称

时间:2014-01-14 19:42:17   收藏:0   阅读:2014

1. 拷贝配置文件

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

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

relative_to = DirectoryOfThisScript()

 修改为:

relative_to = /usr/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++关键字自动补全

原文:http://www.cnblogs.com/scue/p/3512704.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!