The Jump List

Ctrl-O / Ctrl-I โ€” walk back and forward through your big jumps.

Keys: Ctrl-O, Ctrl-I, :jumps

Vim records every "big jump" you make in a per-window jump list. Ctrl-O moves backward through it; Ctrl-I (Tab) moves forward.

Every time you make a big jump โ€” a search, a G, a %, a mark jump โ€” Vim pushes the position you came from onto a list. Ctrl-O walks back through it; Ctrl-I walks forward.

Jump back
KeyNote
Ctrl-O
Jump forward (= Tab in most terminals)
KeyNote
Ctrl-I
Show the jump list
KeyNote
:
j
u
m
p
s
Enter
Ctrl-O โ€” jump back
Ctrl-I โ€” jump forward
:jumps โ€” list jumps

Worked example โ€” Ctrl-O and Ctrl-I

Walk back through your jump history.

Step 1 ยท
marks.jumplist
Step 2 ยท G ยท G โ€” jumped to bottom (recorded).
G โ€” jumped to bottom (recorded).
Step 3 ยท Ctrl-O ยท Ctrl-O โ€” back where we came from.
Ctrl-O โ€” back where we came from.

Vim records 'big' jumps in a per-window list. Ctrl-O goes back, Ctrl-I goes forward.

โ–ถ Try this in the simulator

See also: Setting and Jumping to Marks, The Change List, Pattern Search