I'm trying to tune the highlighting in my vim and I'm trying to set some syntax groups via the match
command and highlight them in my vimrc
file, because those groups are generic and do not belong to any particular language syntax file.
But my approach works only for a single highlighting, as soon as I add another instance of a highlight/match
pair the previously declared ones do not work, only the last one works until I add another highlight/match
.
This is the code (the relevant part) of my vimrc. This example works:
hi NewLineWin ctermfg=248 guifg=#999999
match NewLineWin /\r\n/
And this doesn't (only the last pair of hi/match
does):
hi NewLineWin ctermfg=248 guifg=#999999
match NewLineWin /\r\n/
hi WhiteSpaceChar ctermfg=252 guifg=#999999
match WhiteSpaceChar / /
Can anyone help me with this, how to make it work?