tpope / vim-rails

rails.vim: Ruby on Rails power tools
http://www.vim.org/scripts/script.php?script_id=1567
4.1k stars 383 forks source link

gf works but ctl-W-gf fails #544

Closed benlieb closed 5 years ago

benlieb commented 5 years ago

The most useful version for me of gf is to open in a new tab, but for some reason this fails for me, whereas the other versions offered of gf (ctl-w-ctl-f, etc) do work. Is this generally broken or do I have some conflicting setting somewhere?

benlieb commented 5 years ago

Ok, looks like my issue was using ctl-w instead of ctl-W...

tpope commented 5 years ago

There shouldn't be a difference between the two, that is, holding the shift key should have no effect.

One plausible explanation is typing speed, as you have to press all 3 keys within 1 second for the map to take effect.

benlieb commented 5 years ago

Hm, looking again, I can see that you are right. I think I was doing the my old habit of gF instead of gf. That's a hang-over. Thanks for your suggestion... sorry to waste your time on doing wrong...