Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/epilande/vim-es2015-snippets
:scissors: ES2015 code snippets for vim
https://github.com/epilande/vim-es2015-snippets
es2015 es6 snippets vim
Last synced: 2 months ago
JSON representation
:scissors: ES2015 code snippets for vim
- Host: GitHub
- URL: https://github.com/epilande/vim-es2015-snippets
- Owner: epilande
- Created: 2016-10-10T20:48:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-01T05:43:59.000Z (over 7 years ago)
- Last Synced: 2024-10-30T09:35:47.538Z (3 months ago)
- Topics: es2015, es6, snippets, vim
- Size: 1.95 KB
- Stars: 37
- Watchers: 4
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vim ES2015 Snippets
A Vim snippet library for ES2015. You may also want to check out [vim-react-snippets](https://github.com/epilande/vim-react-snippets).
Requires [UltiSnips](https://github.com/SirVer/ultisnips).
![vim-es2015-snippets](http://i.imgur.com/7EnLr1m.gif)
## Installation
Using vim-plug:
```vim
" ES2015 code snippets
Plug 'epilande/vim-es2015-snippets'" React code snippets (Optional)
Plug 'epilande/vim-react-snippets'" Ultisnips
Plug 'SirVer/ultisnips'" Trigger configuration (Optional)
" let g:UltiSnipsExpandTrigger=""
```## Usage
In a JavaScript or JSX file, type a trigger name while in Insert mode, then press Ultisnips trigger key. In my case I have it mapped to ``.In Insert mode
```javascript
c=>
```Will expand to
```javascript
const name = (args) => {
return ;
};
```Check out [`UltiSnips/javascript.snippets`](UltiSnips/javascript.snippets) to see all snippets.