Fedora下YouCompleteMe配置

需要在默认的.ycm_extra_conf.py 中添加(C++的路径可能需要根据版本号修改)

'-isystem',
'/usr/include',
'-isystem',
'/usr/include/c++/5.3.1',
'-isystem',
'/usr/include/linux',

 同时在.vimrc中添加(路径为.ycm_extra_conf.py文件的路径)

let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py '

 删除.ycm_extra_conf.py文件中的下列内容以补全C++标准库

try:
final_flags.remove( '-stdlib=libc++' )
except ValueError:
pass

具体可参照:

http://tieba.baidu.com/p/2672605209

posted @ 2016-04-13 22:34  hu983  阅读(201)  评论(0编辑  收藏  举报