Is there a C++11 syntax file for vim?

后端 未结 9 883
栀梦
栀梦 2020-12-02 14:58

In particular, the display of initialization lists is really bad:

vector v({1,2,3});

will highlight the curly braces in red (den

9条回答
  •  庸人自扰
    2020-12-02 15:38

    You can also configure this in a local syntastic config file.

    Drop a .syntastic_cpp_config file in your project root and give it the compiler arguments one per line (I also have include paths for the Loki library as an example):

    -std=c++11
    -Ilib/loki/include
    -Ilib/loki_book/include
    

提交回复
热议问题