29

GitHub - isRuslan/vim-es6: List of JavaScript ES6 snippets and syntax highlighti...

 5 years ago
source link: https://github.com/isRuslan/vim-es6
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

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

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK