ES6 Syntax Highlighting In Vim

Kade Killary · 2017.09.27 · 1 minutes until it's over

es6-js

Recently, I decided to take a deep dive into the world of Javascript. So far so good, but I was off put by one thing: Vim’s terrible syntax highlighting for modern Javascript. At first it seemed like I was going to have to accept it. Luckily though, I was able to find a great plugin that adds excellent ES6 syntax highlighting.

Don’t believe me?

Before

before

After

after

Setting it up in your .vimrc

augroup filetype javascript syntax=javascript