Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Refactoring tool for Ruby in vim!
VimL

This branch is 130 commits behind ecomba:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
plugin
README

README

Ruby Refactoring Tool for Vim

I love vim! It's my editor of choice when I am developing software.

Currently (for the last 4 years at least) I have been working mainly
with the Ruby Programming Language.

I have been missing a refactoring tool for a while (like the ones you
can find in IDE's) while I am developing, but I never had the nerve
to dwell into vim script to actually code my own.

Recently (a couple of weeks ago) Gary Bernhardt presented his vim
configuration in the Software Craftsmanship User Group UK and he
showed us the two refactoring patterns he has written in vim script.

Initially I just thought "cool", but it didn't really sink in until
a couple of weeks later.

So now I have decided to code this in vim script, but I am not sure how far
I will go with it (clone at your own risk).

Implemented patterns:

- Add Parameter: <leader>rap
- Extract Constant:  <leader>rec (visual mode selection)
- Extract Local Variable: <leader>relv (works if the variable is selected in visual mode)
- Rename Local Variable: <leader>rrlv (works if the variable is selected in visual mode, *REQUIRES matchit.vim*)
- Rename Instance Variable: <leader>rriv (works if the variable is selected in visual mode, *REQUIRES matchit.vim*)
- Extract Method: <leader>rem (visual mode selection)
- Inline Temp: <leader>rit

Enrique Comba Riepenhausen
Something went wrong with that request. Please try again.