Go to a newer change position
g,
Example
Normal 0 / 1Normal 1 / 1first linex
second line
third line
fourth line
fifth lineyCursor on line 1, column 11first linex
second line
third line
fourth line
fifth lineyCursor on line 5, column 11Move forward through the change list.
Change list
- 1 · line 2
column 1- 2 · line 1 Active
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 forward 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 11Change list
- 1 · line 2
column 1- 2 · line 1 Active
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). Two prior g; traversals put its pointer and cursor on the middle entry at line 1, column 11. The displayed local marks are already prepared.
Details & Vim help
Example replayed in Vim
Move forward through the change list.
Use g, after g; to return toward newer recorded edit locations. This moves the cursor without redoing or otherwise changing the text.