November 11, 2010

vim: list of color groups

In Vim, to see a list of color groups, use
:hi

or the complicated version:

:so $VIMRUNTIME/syntax/hitest.vim


Then you can use the group name in :match command

:help \bar to see multiple string match

For Example, the following command highlights ring or later using the color-group DiffText

:match DiffText /ring\|later/

No comments:

Post a Comment