vim-js
A Vim syntax highlighting plugin for JavaScript and Flow.js
Pros.
- Better support for modern JavaScript features (decorators, private members, numeric separators, optional chaining, etc.)
- Better support for Flow.js syntax
- Better support for JSDoc syntax
- More accurate syntax groups, for easy colorscheme customization
Install
- Choose your favourite plugin manager (e.g. vim-plug)
- Install it with
Plug 'yuezk/vim-js'
Highlight JSX Syntax
Please use vim-jsx-pretty to highlight the JSX syntax. It's another plugin I currently maintain.
Plug 'maxmellon/vim-jsx-pretty'