Skip to content

justinj/vim-relax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

relax.vim

React tools for Vim

Navigating React components got you stressed? Chill, relax.vim has got you covered.

relax.vim depends on TimL

Features

  • Easily jump to any method within a React class with :R
    • :R r to jump to render
    • :R gis to jump to getInitialState
    • :R! gdp to jump to getDefaultProps, and create it if it doesn't exist
  • Jump to event handlers with :RHandler
    • Anywhere on the line onClick={this.handleClick} will jump to it
    • It will also create the handler if it doesn't exist
  • Scan a class for uses of this.props and create a simple propTypes with :RProps

Installation

Install it like any other Vim plugin, the one difference is that this depends on TimL, so that must be installed as well.

License

Copyright (c) Justin Jaffray. Distributed under the same terms as Vim itself. See :help license.

About

React tools for Vim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published