pythonika23
pythonika23

Reputation: 13

Highlight brackets in vim

I want a special syntax highlight for these 2 patterns:

{{
}}

How can I do that?

Upvotes: 1

Views: 215

Answers (1)

sehe
sehe

Reputation: 393769

If it's a oneoff:

:match Identifier /{{\|}}/

For Identifier you can pick any highlight group (try Cursor, Error etc., autcompletion is available when you type :matchTab)

If it's not a one-off, consider writing a syntax highlighting script (:he mysyntaxfile)

Upvotes: 2

Related Questions