Vim Recall繁體中文

Based on i; first move to the '^ mark

gi

Example

Normal 0 / 3
one twored
Cursor on line 1, column 1

Based on i; first move to the '^ mark.

Local marks

'[
line 1, column 8
']
line 1, column 11
'^
line 1, column 11
'.
line 1, column 8
Before & after
Before
one twored
Cursor on line 1, column 1

Local marks

'[
line 1, column 8
']
line 1, column 11
'^
line 1, column 11
'.
line 1, column 8
After
one tworedX
Cursor on line 1, column 11

Local marks

'[
line 1, column 11
']
line 1, column 12
'^
line 1, column 12
'.
line 1, column 11

Start in Normal mode. A prior Ared followed by Esc appended red to the line, then 0 moved away. gi returns to the remembered last insertion position before the displayed X is typed.

Details & Vim help

Example replayed in Vim

Based on i; first move to the '^ mark. Use in Normal mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.