Vim Recall繁體中文

Go to the last selection start

`<

Example

Normal 0 / 1
one two
three four
Cursor on line 2, column 3

Move to the start of the previous Visual area.

Local marks

'.
line 2, column 1
'<
line 1, column 1
'>
line 1, column 3
Before & after
Before
one two
three four
Cursor on line 2, column 3

Local marks

'.
line 2, column 1
'<
line 1, column 1
'>
line 1, column 3
After
one two
three four
Cursor on line 1, column 1

Local marks

'.
line 2, column 1
'<
line 1, column 1
'>
line 1, column 3

Start in Normal mode. A prior Visual selection covers one. The cursor is then moved to the second line; the command returns to a selection boundary.

Details & Vim help

Example replayed in Vim

Move to the start of the previous Visual area.

The < mark identifies one boundary of the last Visual selection. Use gv when you want to restore the selection itself rather than move to one endpoint.