How do you return from 'gf' in Vim
I use Ctrl-O
I frequently use Ctrl-6 for this.
It's handy because it allows me to quickly jump back and forth between the two files.
You might want to use CTRL-W gf
to open the file in a new tab.
You can close the newly opened file as always with :bd
, or use CTRL-6
and other usual ways of changing buffers.
Just use :e#
followed by Enter - that basically says to edit the last (most recent) file.
Use gf to descend into a file and use :bf to get back