Opening the linked rails.vim file in a new window

I like rails.vim support for navigating 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 a newly created window or in another, but existing window.

How would I do that?

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

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

Instead :Econtroller type :EScontroller to open in a new partition. There are several more commands in the documents.

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

+11
source share

You can use the mapping defined by the plugin. In particular, to open a new window, you can use ctrl w + f . See: help rails-gf for documents.

0
source share

All Articles