https://github.com/pgilad/vim-react-proptypes-snippets
Vim React PropTypes Snippets
https://github.com/pgilad/vim-react-proptypes-snippets
autocomplete javascript proptypes react snippets vim
Last synced: 11 months ago
JSON representation
Vim React PropTypes Snippets
- Host: GitHub
- URL: https://github.com/pgilad/vim-react-proptypes-snippets
- Owner: pgilad
- License: mit
- Created: 2016-09-04T08:03:08.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-02-13T09:27:27.000Z (over 7 years ago)
- Last Synced: 2025-05-09T02:17:40.844Z (about 1 year ago)
- Topics: autocomplete, javascript, proptypes, react, snippets, vim
- Size: 223 KB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vim-react-proptypes-snippets
> A set of snippets for Vim to work with Facebook's [React](http://facebook.github.io/react/) PropTypes.

## Installation
Use your preferred Vim plugin installation method.
- [NeoBundle](https://github.com/Shougo/neobundle.vim)
- [Vundle](https://github.com/gmarik/vundle)
- [pathogen](https://github.com/tpope/vim-pathogen)
Example using `NeoBundle`:
```vim
" 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
```
Expanding to
```js
PropTypes.func.isRequired,
```
And a bunch of others!
Check [UltiSnips/javascript.snippets](UltiSnips/javascript.snippets) to see the full list.
## License
MIT © [Gilad Peleg](https://www.giladpeleg.com)