Question

When writing a syntax highlighter for vim you can use the following:

highlight link foo      Identifier

However, can I use a custom color, say Grey?

Was it helpful?

Solution

Instead of linking to an existing highlight group, you can specify colors (and attributes like bold and italic). See :help highlight-args for details.

:highlight foo  ctermfg=Grey guifg=Grey
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top