Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 931 Bytes

README.md

File metadata and controls

45 lines (29 loc) · 931 Bytes

Vim ES2015 Snippets

A Vim snippet library for ES2015. You may also want to check out vim-react-snippets.

Requires UltiSnips.

vim-es2015-snippets

Installation

Using vim-plug:

" 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="<C-l>"

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 <C-l>.

In Insert mode

c=><C-l>

Will expand to

const name = (args) => {
  return ;
};

Check out UltiSnips/javascript.snippets to see all snippets.