sponsor Vim development Vim logo go to HTTPS page Vim Book Ad

C++11 Syntax Support : A port of the existing C++ syntax to allow for C++11 features

 script karma  Rating 174/93, Downloaded by 4173    Comments, bugs, improvements  Vim wiki

created by
Michael Small
script type
Modified existing c.vim and cpp.vim (into cpp11.vim and cpp11_cbase.vim) to add support for new language features found in C++11.

* Initialiser lists and lambdas no longer cause curly error highlighting ({} allowed within parentheses).
* constexpr keyword added.

I'm adding features as I hit them - if something is bugging you and not yet added, let me know.

I've been working on a completely new syntax script from the ground up as extending these existing scripts is just too difficult as C++11
is a very different beast from the original C support that the scripts were based on.

I expect to have a working release of the new script up here and on github just after the new year.

~ Mike (2011-12-15)
install details
Tar contains just the required .vim files, so un-tar them in (or copy to) your ~/.vim/syntax/ directory.

To make the syntax permanent, consider setting with an auto command in your vimrc:

au BufNewFile,BufRead *.cpp set syntax=cpp11

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
cpp11.tgz 0.1.1 2011-11-05 6.0 Michael Small Fixed corrupted files.
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
SourceForge.net Logo