pgilad / vim-react-proptypes-snippets

Vim React PropTypes Snippets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vim-react-proptypes-snippets

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

demo gif

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

About

Vim React PropTypes Snippets

License:MIT License