C ++ 11 functions not recognized in vim

When using multiple C ++ 11 functions in vim, I noticed that the syntax of vim plugin taglistsaves reporting errors such as 'stoi' was not declared in this scope.

So I have a few questions

  • How to get a taglist syntax for recognizing C ++ 11 functions?
  • Is there any way to at least hide error messages in vim?

I also know that I can replace C ++ 11 specific code with standard C ++ to fix errors, but I want to find out if there is another way.


Edit: Sorry, it turns out that the syntax is actually responsible for the errors, not the taglist.
Thanks for reminding me, I have too many plugins and I forget that everyone does

+4
source share
1 answer

After some searching in the git syntax repo, I found a simple solution by
adding let g:syntastic_cpp_compiler_options = '-std=c++11'to my .vimrc

+6
source

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


All Articles