Home

Awesome

Enhanced JavaScript Syntax for Vim

Credits

Description

This file is a fork of this file and the stock one

This version of this file features the following text highlights:

Rationale

While there are already a few syntax files in the wild (some even forks from this project), the goal is to have a syntax file that has current keywords for modern ES/JS development and to be fairly lean and quick on loading.

Screenshots

This is the stock Javascript syntax file

Solarized Light

Stock Vim JavaScript syntax file

This is with the Enhanced Syntax file Enhanced JavaScript Vim syntax

More screenshots here.

Hybrid

Stock Vim JavaScript syntax file

This is with the Enhanced Syntax file Enhanced JavaScript Vim syntax

Installation

Plug 'jelera/vim-javascript-syntax'
Plugin 'jelera/vim-javascript-syntax'
git clone https://github.com/jelera/vim-javascript-syntax.git ~/.vim/bundle/vim-javascript-syntax

Suggested Companion Plugins

It can be achieved with Javascript-Indent by Preston Koprivica. On my testing, it has proved to be the most capable and also indents HTML and JS inside HTML. The project is unmaintained for now, but you could fork it and improve upon it.

Contributions

While all contributions are always welcome, make sure your commit message follow this convention.

License

The same as Vim