Prompt errorValueError: Still no compile flags, no completions yet
迷茫2017-05-16 16:37:20
Try configuring Extra conf in vimrc.
If you use vundle, that is: let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'
If you use Vim-Plug, this is: let g:ycm_global_ycm_extra_conf = '~/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'
黄舟2017-05-16 16:37:20
Just put .ycm_extra_conf.py
文件放到 ~/
in the directory. Of course, @S1ngS1ng’s method is also possible.
phpcn_u15822017-05-16 16:37:20
Use YCM-Generator to generate the .ycm_extra_conf.py file and put it in the directory where you open vim or set the default path in vimrc