Rbfactor

Functions to refactor Ruby programs with Vim

Download .zip Download .tar.gz View on GitHub

Rbfactor – Refactoring Ruby with Vim

Introduction

Rbfactor is a set of functions to make refactoring Ruby code in Vim a little easier. It provides transformation functions and some keymaps to use them.

Available refactorings

  • Extract method
  • Extract variable
  • Extract constant
  • Extract RSpec let
  • Add method argument
  • Tranform inline modifier into block modifier

For more information, see :help rbfactor.

Installation

If you don't have a preferred installation method, I recommend installing pathogen.vim, and then simply copy and paste:

cd ~/.vim/bundle
git clone git://github.com/avdgaag/vim-rbfactor.git

Once help tags have been generated, you can view the manual with :help rbfactor.

Other

Note on Patches/Pull Requests

  1. Fork the project.
  2. Make your feature addition or bug fix.
  3. Send me a pull request. Bonus points for topic branches.

Issues

Please report any issues, defects or suggestions in the Github issue tracker.

What has changed?

See the HISTORY file for a detailed changelog.

Credits

Created by: Arjan van der Gaag
URL: http://arjanvandergaag.nl
Project homepage: https://github.com/avdgaag/vim-rbfactor
Date: November 2013
License: Same as Vim. See :help license.