Proper tag highlighting in Vim?

2019-08-09 23:41发布

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.

Vim html document

1条回答
Evening l夕情丶
2楼-- · 2019-08-10 00:07

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:

correct html tags highlighting in Vim

查看更多
登录 后发表回答