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

 

相关文章:

  • 2022-01-18
  • 2022-12-23
  • 2021-11-17
  • 2021-04-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-09
  • 2021-10-11
  • 2021-12-11
  • 2021-06-29
  • 2022-12-23
相关资源
相似解决方案