In vim, I move cursor to the function I'm interested in,

then press ^W,

then press gf.

It'll automatically open the referenced function.

How does it work?

link|improve this question

14% accept rate
4  
Probably just ordinary magic. – Kusalananda Sep 20 '11 at 12:44
@KAK,what do you mean? – xpbug Sep 20 '11 at 12:52
Sorry, it was a joke. I was remembering a quote from Arthur C. Clarke: "Any sufficiently advanced technology is indistinguishable from magic." – Kusalananda Sep 20 '11 at 13:12
feedback

1 Answer

:he CTRL-W_gf says it will open file under cursor in new tab.

If it does something else try :verbose nmap <C-w>gf to see if there is a mapping which does anything else.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.