Reputation: 13
I want a special syntax highlight for these 2 patterns:
{{
}}
How can I do that?
Upvotes: 1
Views: 215
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 :match
Tab)
If it's not a one-off, consider writing a syntax highlighting script (:he mysyntaxfile
)
Upvotes: 2