Martin Sustrik
Martin Sustrik

Reputation: 813

Custom colors in vim syntax highlighting?

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?

Upvotes: 0

Views: 383

Answers (1)

Ingo Karkat
Ingo Karkat

Reputation: 172768

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

Upvotes: 3

Related Questions