vim-react-proptypes-snippets

Vim React PropTypes Snippets

MIT License

Stars
10

vim-react-proptypes-snippets

A set of snippets for Vim to work with Facebook's React PropTypes.

Installation

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"

Usage

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.

License

MIT Gilad Peleg