sponsor Vim development Vim logo Vim Book Ad

after/syntax/c.vim : C Syntax Extensions

 script karma  Rating 90/46, Downloaded by 3039    Comments, bugs, improvements  Vim wiki

created by
Mikhail Wolfson
 
script type
syntax
 
description
This file, instead of replacing the normal c.vim file, incorporates and improves upon some of the changes added in vimscript #1201, "Extended original c.vim." Because this file goes in $VIMRUNTIME/after/syntax, it appends these additional definitions to whatever c.vim file comes with the version of Vim you use.

The main additions identify operators, delimiters, and user-defined functions/function calls. Also included is a wealth of standard ANSI C function names as keywords. This makes C files look significantly richer, especially if your colorscheme includes color variants for the additional syntax groups.

The Match regexps for user-defined functions have been improved. The rest is mostly just selective porting from the c.vim in vimscript #1201.
 
install details
Place c.vim in $VIMRUNTIME/after/syntax.
 

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
c.vim 0.4 2010-12-17 7.0 Mikhail Wolfson updates and fixes to cDelimiter to fix break with foldmethod=syntax, entirely suggested and solved by Ivan Freitas
c.vim 0.3 2010-04-23 7.0 Mikhail Wolfson updates and fixes to cUserFunctionPointer, thanks to Alexei <lxmzhv@gmail.com>
c.vim 0.2 2010-04-20 7.0 Mikhail Wolfson changed [] from cDelimiter to cOperator.
c.vim 0.1 2010-04-17 7.0 Mikhail Wolfson Initial upload
ip used for rating: 54.80.180.41

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