If I jump to a file e.g. by gf I know that I can do ctrl+O to go back.
But how do I go forward? I.e. what is the opposite of ctrl+O so as to go forward to the file I was earlier to which I jumbed to via gf?

1 Answer 1


The opposite of <C-O> is <C-I> a.k.a. <Tab>:

CTRL-O Go to [count] Older cursor position in jump list

Tab or
CTRL-I Go to [count] newer cursor position in jump list

:jumps will print the jump list, which is nice for orientation.

Learn how to look up commands and navigate the built-in :help; it is comprehensive and offers many tips. You won't learn Vim as fast as other editors, but if you commit to continuous learning, it'll prove a very powerful and efficient editor.

  • How would I use :help to find this topic for instance?
    – Jim
    Commented Nov 28, 2013 at 13:03
  • 1
    :help CTRL-O; you just need to know the command's mode and the spelling of keys! Commented Nov 28, 2013 at 13:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .