Vim Recall繁體中文

Go to a newer change position

g,

Example

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

Move 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
Before & after
Before
first linex
  second line
third line
fourth line
fifth liney
Cursor on line 1, column 11

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
After
first linex
  second line
third line
fourth line
fifth liney
Cursor on line 5, column 11

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

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.