Vim React PropTypes Snippets
MIT License
A set of snippets for Vim to work with Facebook's React PropTypes.
Use your preferred Vim plugin installation method.
Example using NeoBundle
:
" vim-react-snippets:
NeoBundle "pgilad/vim-react-proptypes-snippets"
" Ultisnips
NeoBundle "SirVer/ultisnips"
" Other sets of snippets (optional):
NeoBundle "honza/vim-snippets"
Within any Javascript or JSX file, you should be able to do the following:
(in insert mode)
ptfr<Tab>
Expanding to
PropTypes.func.isRequired,
And a bunch of others! Check UltiSnips/javascript.snippets to see the full list.
MIT Gilad Peleg