List of JavaScript ES6 snippets and syntax highlighting for vim.
Switch branches/tags
Nothing to show
Clone or download
isRuslan Merge pull request #18 from quezak/master
fix syntax modules path and highlight linking
Latest commit c0ca7bc Sep 22, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
UltiSnips Added export snippet Jul 22, 2016
autoload snippets: update Feb 18, 2015
ftdetect add template substitution Jan 21, 2016
indent Add automatic indentation rules from vim-javascript Sep 5, 2015
snippets Added export snippet Jul 22, 2016
syntax source all modules instead of just the first one Sep 20, 2017
.gitignore init Feb 6, 2015
README.md Added export snippet Jul 22, 2016
es6.sample.js add template substitution Jan 21, 2016

README.md

Write JavaScript ES6 easily with vim.

Install

You need SnipMate or UltiSnips installed.

To install using Vundle:

" add this line to your .vimrc file
Plugin 'isRuslan/vim-es6'

To install using pathogen.vim:

cd ~/.vim/bundle
git clone https://github.com/isRuslan/vim-es6.git

To manual install download zip file:

cd ~/.vim
unzip vim-es6.zip

To checkout the source from repository:

cd ~/.vim/bundle
git clone https://github.com/isRuslan/vim-es6.git

Snippets list

Trigger Result
gfn→ function* name (arg) { yield arg; }
=>→ (arg) => { ... },
class→ class name { constructor () { ...} }
forof→ for (let value of arr) { ... }
im→ import lib from 'Library'
ex→ export default foo