search

Home  >  Q&A  >  body text

vim plugin youcompleteme

Prompt errorValueError: Still no compile flags, no completions yet

大家讲道理大家讲道理2741 days ago933

reply all(4)I'll reply

  • 黄舟

    黄舟2017-05-16 16:37:20

    What editor did you install the vim plug-in on?

    reply
    0
  • 迷茫

    迷茫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'

    reply
    0
  • 黄舟

    黄舟2017-05-16 16:37:20

    Just put .ycm_extra_conf.py 文件放到 ~/ in the directory. Of course, @S1ngS1ng’s method is also possible.

    reply
    0
  • phpcn_u1582

    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

    reply
    0
  • Cancelreply