Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opening a rails.vim related file in a new window

I like rails.vim support for going to the corresponding file. For example, if I'm in the Product model, I can type :Econtroller to open the ProductsController in the same window.

I want to open the controller in either a newly created window or else in a different, but existing window.

How would I do that?

For example, to open a file, you can type :e filename to open in the same window and :sp filename to open in a new window. I want the :sp version of :Econtroller, etc.

like image 253
Kyle Heironimus Avatar asked Aug 17 '11 19:08

Kyle Heironimus


1 Answers

Instead of :Econtroller type :EScontroller to open in a new split. There are several more commands in the docs.

After checking the third time, I found the answer in plain sight in the docs. see :help rails-type-navigation

like image 86
Kyle Heironimus Avatar answered Nov 08 '22 03:11

Kyle Heironimus