The javascript.vim that highlights javascript in vim has been put into syntax, but it doesn't work.
迷茫
迷茫 2017-05-16 16:42:12
0
3
635

As shown in the picture, part of it is highlighted, and some DOM attributes are not highlighted. Is this the reason?

Do I need to set anything in .vimrc?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(3)
阿神

.vimrc 加入以下3句:
syntax enable " enable syntax hightlight and completion
syntax on " syntax highlighing
filetype on " try to detect file types

習慣沉默

js highlighting (including js embedded in html, including independent js files), only uses a plug-in. https://github.com/pangloss/vim-javas...

曾经蜡笔没有小新

VIM’s default js syntax highlighting is quite unsatisfactory. You can find a better one online. However, I don’t recommend using too many plugins. Just take a look. However, it is recommended that you highlight the highlights, various parentheses, and various symbols, because these are the real delimiters in the code.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template