How do you return from 'gf' in Vim

editor, vim

Solution

I use Ctrl-O

Problem

I am using Vim for windows installed in Unix mode. Thanks to this site I now use the `gf` command to go to a file under the cursor. I'm looking for a command to either: - return to the previous file (similar to Ctrl+T for ctags), or - remap `gf` to automatically launch the new file in a new window.

Original source