Note: I've ported /snippets
to es6 class usage. I've not touched /UtiliSnips
.
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.
Use your preferred Vim plugin installation method. Vundle or Pathogen should be fine (I use Pathogen).
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.