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
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.
-
-
1
:help CTRL-O
; you just need to know the command's mode and the spelling of keys! Nov 28, 2013 at 13:07