Vim Recall繁體中文

Go backward through jumps

Ctrl-o

Example

Normal 0 / 1
first line
  second line
third line
fourth line
fifth line
Cursor on line 1, column 1

Return to an older jump-list position.

Jump list

1 · line 1
column 1
2 · line 5
column 1

Local marks

'.
line 2, column 1
Before & after
Before
first line
  second line
third line
fourth line
fifth line
Cursor on line 1, column 1

Jump list

1 · line 1
column 1
2 · line 5
column 1

Local marks

'.
line 2, column 1
After
first line
  second line
third line
fourth line
fifth line
Cursor on line 5, column 1

Jump list

1 · line 5 Active
column 1
2 · line 1
column 1

Local marks

'.
line 2, column 1

Start in Normal mode.

Details & Vim help

Example replayed in Vim

Return to an older jump-list position.

Searches and large motions can create jump-list entries. Normal-mode Ctrl-o moves backward through those entries; it does not undo text. Insert-mode Ctrl-o has a different meaning.