4

I installed You Complete Me with Vundle and then ran

cd ~/.vim/bundle/YouCompleteMe
./install.sh --clang-completer

And added

let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleMe/cpp/ycm/.ycm_extra_conf.py'

to my vimrc file.

Now when I write C++11 code, ycm gives me syntax errors! What am I doing wrong?

Morwenn
  • 21,684
  • 12
  • 93
  • 152
amin
  • 3,672
  • 5
  • 33
  • 61

1 Answers1

13

commenting -Wc++98-compat flag in ~/.vim/bundle/YouCompleMe/cpp/ycm/.ycm_extra_conf.py did the job for me .

amin
  • 3,672
  • 5
  • 33
  • 61