Proper tag highlighting in Vim?

2019-08-09 23:52发布

问题:

Just getting into Vim, but can't figure out why it's not highlighting these HTML tags properly. Shouldn't the closing body and html tags be bold and red? See pic.

回答1:

Most colorschemes don't go very far beyond the generic highlight groups like Keyword or String.

My favorite colorscheme is Sorcerer but I had to customize it like that :

hi htmlTag            guifg=#90b0d1 gui=NONE 
hi htmlSpecialTagName guifg=#90b0d1 gui=NONE 
hi htmlTagName        guifg=#90b0d1 gui=NONE  
hi htmlEndTag         guifg=#90b0d1 gui=NONE

to obtain this: