gF works but c-w f doesn't
Opened this issue · 2 comments
<c-w>f
doesn't take me to the line number within the file, whereas gF
does, but only within the same window.
My use case is, from bash, going:
somegrep somestring | vim -
which gives me a list of files. If i were to gF
on a result, I get the yes/no/cancel
dialog to confirm I want to lose that page forever. I don't - hence my use of <c-w>f
to open the result in another window. Ideally vim-fetch would do this AND jump to the correct line within that file.
Duh, I wasn’t even aware of the CTRL-W
file lookup commands until now. This looks tricky as the commands perform a lookup of the file before splitting, so vim-fetch will have to override the whole operation. I’ll file your suggestion under future enhancements, but I must warn you I cannot provide an ETA, as I have no inkling of when I will have time to invest into this plugin again.
That's ok - workaround is just to do:
<c-w>vgF