What is vim syntax name for printf placement %d within strings?
Within printf
format strings, the placement characters, from %
to the corresponding d
, or x
appear in dark blue. With a black background, they are very hard to read.
To change the color, I 开发者_Python百科know I have to change the color with a command like this:
highlight Comment ctermfg=Cyan
But I have to put the correct syntax group name instead of Comment
.
Does anyone know what this syntax group name is?
It's cFormat
. You can check what group is under the cursor by executing:
:echo synIDattr(synID(line("."),col("."),1),"name")
That group's name is cFormat
.
精彩评论