Vim YouCompleteMe configuration

后端 未结 5 1379
孤独总比滥情好
孤独总比滥情好 2021-01-31 05:01

i just installed YouCompleteMe for Vim through vundle. It works, but it shows only the words contained in the current file. I want to use it to develop c++ programs, how can i c

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-31 05:30

    You need to navigate to ~/.vim/bundles/YouCompleteMe and run the installation script with --clang-completer, so do ./install.sh --clang-completer. After it finishes you should have support for C like languages.

    You may also need to place let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/cpp/ycm/.ycm_extra_conf.py' in your ~/.vimrc.

提交回复
热议问题