Vim’s javascript with JavaScript highlighted. Vim has already been put into syntax, but not yet.

  question, vim

QQ拼音截图未命名.png

As shown in the figure, there are some DOM attributes that are not highlighted. Is this why?

Do you need to set anything in. vimrc?

. vimrc add the following 3 sentences:
syntax enable ” enable syntax hightlight and completion
syntax on ” syntax highlighing
filetype on ” try to detect file types