Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tips and tricks for using vim with ruby/ruby on rails

I'm one of those developers who isn't using TextMate with any of his Ruby/Ruby on Rails work. My particular loyalty in this arena lies with vim. What are your favorite tips/tricks for using vim with Ruby and/or Ruby on Rails to make you as efficient as possible when working?

like image 596
randombits Avatar asked Feb 23 '10 03:02

randombits


2 Answers

Most important

Get a copy of rails.vim it is awesome on millions of levels. Read the doc. There are way too many tips, :Rview customer, :RSmodel foo, :Rinvert, gf, :Rextract, :Rake and the list goes on and on. You will probably want NERDTree as well for easy navigation (which you can access using :Rtree)

Second most important

Follow tpope on twitter (the author of fugative, rails.vim, haml.vim, vividchalk theme, cucumber.vim and so on), he seems to be posting new related to Rails vim plugins quite regularly (be it syntax highlighting or git integration).

like image 91
Sam Saffron Avatar answered Oct 31 '22 22:10

Sam Saffron


You might want to checkout my ruby/rails specific vimfiles.

Its a useful starting point and has many useful Ruby/Rails plugins bundled and configured.

like image 2
Kris Avatar answered Oct 31 '22 22:10

Kris