0

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?

1 Answer 1

3

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
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.