Rails.vim rocks!

For my Ruby on Rails development, I have waffled between (g)vim and gedit. Tim Pope’s excellent rails.vim script not only tips the scales to gvim, in my opinion it completely blows away nearly any other ide for Rails dev, lightweight, heavyweight, or otherwise.

To install, download from the vim scripts site, follow the installation instructions, and start or re-start vim.
There are a ton of commands available; I’ll just walk through the ones I use most often:
First, to create a new rails project, use :Rails . This creates a rails project in a folder called .
You can run script commands with :Rscript–for example, :Rscript generate controller entries, or :Rscript generate model entry create.
I like to work with documents on multiple tabs in gvim. There are a half dozen commands beginning with :RT to open a document in a new tab. For example, to edit a model class, I type :RTmodel, hit space, then hit tab, whereupon you will be presented with model names to choose from. You can do the same thing with :RTcontroller, :RTview, and :RTmigration.


About buffalobillion

Web Developer, JavaScript Balrog, Java dude, Ruby/Rails enthusiast. Guitar Playa.
This entry was posted in Web Dev. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s