Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/isruslan/vim-es6
List of JavaScript ES6 snippets and syntax highlighting for vim.
https://github.com/isruslan/vim-es6
es6 snippets vim vim-syntax viml
Last synced: 4 days ago
JSON representation
List of JavaScript ES6 snippets and syntax highlighting for vim.
- Host: GitHub
- URL: https://github.com/isruslan/vim-es6
- Owner: isRuslan
- Created: 2015-02-13T10:58:36.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-12-15T01:59:13.000Z (about 5 years ago)
- Last Synced: 2024-12-15T20:14:57.790Z (12 days ago)
- Topics: es6, snippets, vim, vim-syntax, viml
- Language: Vim script
- Homepage: http://www.vim.org/scripts/script.php?script_id=5230
- Size: 6.45 MB
- Stars: 466
- Watchers: 13
- Forks: 18
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![](http://i.imgur.com/lYbyBTe.png)
> Write JavaScript ES6 easily with vim.
![](https://giant.gfycat.com/FluidFrailAmethystgemclam.gif)
## Install
> You need [SnipMate](https://github.com/garbas/vim-snipmate) or [UltiSnips](https://github.com/SirVer/ultisnips) installed.
To install using [Vundle](https://github.com/gmarik/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.gitTo manual install [download](https://github.com/isRuslan/vim-es6/releases) zip file:
cd ~/.vim
unzip vim-es6.zipTo 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` |