Sweeet navigation

Oh boy how long was I longing for this! I think I was the only n00b in the block who didn’t know about it, but still:

$ gem install rtags
$ cd directory/with/your/ruby/files
$ rtags --vi -R *

Then fire up vim with your *.rb files, place the cursor on a method call and type ^] (Ctrl+]) to jump to its definition (remember the :help ?). To go back, Ctrl+O or Ctrl+T.

Halleluia!

P.S.: wordpress, eager the way it is to help make things pretty, converts the double dash before “vim” in the “rtags” command into a single long dash, so if you just paste it, it won’t work. type it in yourself.

Update: of course, the sweetness comes from the fact that it also works across different files. Enjoy ;)

Posted in Uncategorized. Tags: , , , , , . Leave a Comment »

Leave a Reply