Skip to content

Creating a :syntax item for all files regardless of filetype #26902

Closed Answered by clason
syyyr asked this question in Q&A
Discussion options

You must be logged in to vote

There is no "global syntax", no. :match is exactly meant for syntax-independent highlighting like you are looking for. The exact events depend a bit on your workflow; note that :match is window-local, though, so BufWinEnter may be better.

You might also want to look at the mini.hipatterns plugin; either for using it directly or as a basis of your own implementation.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@syyyr
Comment options

@clason
Comment options

@syyyr
Comment options

@clason
Comment options

Answer selected by syyyr
@syyyr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants