Rails and refactoring, suggested tools and techniques specific to vim users?

As a fairly new rail developer, last week I had my first refactoring experience when I had to rename the controller and model in order to better reflect the domain we were working with. I used .NET for many years and used tools like Resharper to simply rename classes. I wonder how people in the rail world mitigate the refactoring problem? What interests me most is those that mostly use vim (or something else besides the IDE).

I'm most interested in:

  • effective vim plugins that are specific to rails that can help in the process
  • vim built-in tools that can also help in the process

I spent about two hours doing refactoring and would like to be effective, so any expert advice on rails would be great. Greetings.

Notice, I understand that this question is similar. What tools are available for Ruby refactoring? but I already know the IDE, like ruby ​​mine, I am most interested in how people who use vim with such a task.

+8
ruby vim ruby-on-rails refactoring
source share
2 answers

take a look at this vim pluggin: https://github.com/sandeepravi/refactor-rails.vim

the famous thai dad rails.vim has several refactoring assistants: http://www.vim.org/scripts/script.php?script_id=1567

this is a ruby ​​pearl for refactoring: https://github.com/jcrisp/rails_refactor

it is a Refactoring tool for Ruby, but I think it will be useful for rails projects too: https://github.com/ecomba/vim-ruby-refactoring

here you can find some help for using it: http://justinram.wordpress.com/2010/12/30/vim-ruby-refactoring-series/

+3
source share

I am actually the author of https://github.com/sandeepravi/refactor-rails.vim , and the plugin is still under development (although applicable), and I plan to add quite a few new features - basically the functions that RubyMine gives.

RubyMine is also a great refactoring tool, but it swings memory a lot and it's pretty slow; although the functionality is pretty good. Mostly I want to have these features on vim too.

Although I am biased;), the vim plugin is pretty good, and it will only improve. He is also fast (duh!) Compared to anything else.

+1
source share

All Articles