Go to an older change position
g;
Example
Normal 0 / 1Normal 1 / 1first linex
second line
third line
fourth line
fifth lineyCursor on line 1, column 1first linex
second line
third line
fourth line
fifth lineyCursor on line 5, column 11Move backward through the change list.
Change list
- 1 · line 2
column 1- 2 · line 1
column 11- 3 · line 5
column 11
Local marks
- '[
line 5, column 11- ']
line 5, column 12- '^
line 5, column 12- '.
line 5, column 11
Move backward through the change list
Change list
- 1 · line 2
column 1- 2 · line 1
column 11- 3 · line 5 Active
column 11
Local marks
- '[
line 5, column 11- ']
line 5, column 12- '^
line 5, column 12- '.
line 5, column 11
Before & after
first linex
second line
third line
fourth line
fifth lineyCursor on line 1, column 1Change list
- 1 · line 2
column 1- 2 · line 1
column 11- 3 · line 5
column 11
Local marks
- '[
line 5, column 11- ']
line 5, column 12- '^
line 5, column 12- '.
line 5, column 11
first linex
second line
third line
fourth line
fifth lineyCursor on line 5, column 11Change list
- 1 · line 2
column 1- 2 · line 1
column 11- 3 · line 5 Active
column 11
Local marks
- '[
line 5, column 11- ']
line 5, column 12- '^
line 5, column 12- '.
line 5, column 11
Start in Normal mode. Prepared Before: the changelist has three entries, oldest to newest, at line 2, column 1; line 1, column 11; and line 5, column 11 (one-based). Its pointer is just after the newest entry, and the cursor is at line 1, column 1. The displayed local marks are already prepared.
Details & Vim help
Example replayed in Vim
Move backward through the change list.
The change list remembers edit positions in the buffer. g; moves to an older position without undoing the text. A count skips several entries.