Vim, you completed me a mistake in C ++ 11 syntax

I installed You Complete Meusing Vundleand then launched

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 vimrcfile.

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

+4
source share
1 answer

comment -Wc++98-compatflag in ~/.vim/bundle/YouCompleMe/cpp/ycm/.ycm_extra_conf.pydid the job for me.

+13
source

Source: https://habr.com/ru/post/1526693/


All Articles