vim: What is the opposite of gf?

file, vim

Solution

You can return to the previous buffer using Ctrl-^ or Ctrl-o.

More info

Or if you don't want to save your current changes, do a `:tabnew` and "2Ctrl-o".

Problem

When working with vim, I jump between files with: - Tags: ctrl-] and ctrl-t, - Jump marks: ctrl-i and ctrl-o as well as - Edit locations: g-; and g-,. What I need is a bit different... From the file I am in where I jumped to with g-f: What is the easiest way to reopen the previous file? All of the mentioned above do not help much if you have lots of changes made since switching files. Jumping back to previous tag will not work either, ofc. Can any of the gurus here provide me with some insight?

Original source