vim-react-es6-snippets
vim-react-es6-snippets copied to clipboard
Note: I've ported /snippets to es6 class usage. I've not touched /UtiliSnips.
vim-react-es6-snippets
A set of snippets for Vim to work with Facebook's React library.
A direct port of the awesome snippets from justinj/vim-react-snippets.
Requires vim-snipmate.
Installation
Use your preferred Vim plugin installation method. Vundle or Pathogen should be fine (I use Pathogen).
Usage
Within any Javascript or JSX file, you should be able to do the following:
(in insert mode)
gdp<Tab>
expanding to
getDefaultProps() {
return {
};
},
And a bunch of others!
Check snippets/javascript.snippets to see the full list.