Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yuezk/vim-js

πŸ’―The most accurate syntax highlighting plugin for JavaScript and Flow.js
https://github.com/yuezk/vim-js

flow flowtype javascript jsdoc syntax-highlighting vim vim-javascript vim-plugin

Last synced: about 21 hours ago
JSON representation

πŸ’―The most accurate syntax highlighting plugin for JavaScript and Flow.js

Awesome Lists containing this project

README

        

# vim-js

A Vim syntax highlighting plugin for JavaScript and [Flow.js](https://flow.org/)

## Pros.

- Better support for modern JavaScript features ([decorators](https://github.com/tc39/proposal-decorators), [private members](https://github.com/tc39/proposal-private-methods), [numeric separators](https://github.com/tc39/proposal-numeric-separator), [optional chaining](https://github.com/tc39/proposal-nullish-coalescing), etc.)
- Better support for [Flow.js](https://flow.org/) syntax
- Better support for [JSDoc](https://jsdoc.app/) syntax
- More accurate syntax groups, for easy colorscheme customization

yuezk/vim-js screenshot

## Install

1. Choose your favourite plugin manager (e.g. [vim-plug](https://github.com/junegunn/vim-plug))
1. Install it with `Plug 'yuezk/vim-js'`

## Highlight JSX Syntax

Please use [vim-jsx-pretty](https://github.com/MaxMEllon/vim-jsx-pretty) to highlight the JSX syntax. It's another plugin I currently maintain.

```vim
Plug 'maxmellon/vim-jsx-pretty'
```

## License

[MIT License](LICENSE)