1. 程式人生 > >c.vim外掛的高亮作用--讀程式碼必備啊

c.vim外掛的高亮作用--讀程式碼必備啊

This file, instead of replacing the normal c.vim file, incorporates and improves upon some of the changes added invimscript #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
.