Vim Recall繁體中文

Set a mark

:k

Example

Normal 0 / 2
first linex
  second line
third line
fourth line
ifth line
Cursor on line 5, column 1

Set a mark.

Local marks

'a
line 2, column 4
'b
line 4, column 3
'[
line 5, column 1
']
line 5, column 1
'^
line 1, column 12
'.
line 5, column 1

Jump list

1 · line 3
column 2
2 · line 5
column 1
3 · line 1
column 11

Change list

1 · line 2
column 1
2 · line 1
column 11
3 · line 5
column 1
Before & after
Before
first linex
  second line
third line
fourth line
ifth line
Cursor on line 5, column 1

Local marks

'a
line 2, column 4
'b
line 4, column 3
'[
line 5, column 1
']
line 5, column 1
'^
line 1, column 12
'.
line 5, column 1

Jump list

1 · line 3
column 2
2 · line 5
column 1
3 · line 1
column 11

Change list

1 · line 2
column 1
2 · line 1
column 11
3 · line 5
column 1
After
first linex
  second line
third line
fourth line
ifth line
Cursor on line 5, column 1

Local marks

'a
line 2, column 4
'b
line 4, column 3
'c
line 5, column 1
'[
line 5, column 1
']
line 5, column 1
'^
line 1, column 12
'.
line 5, column 1

Jump list

1 · line 3
column 2
2 · line 5
column 1
3 · line 1
column 11

Change list

1 · line 2
column 1
2 · line 1
column 11
3 · line 5
column 1

Start in Normal mode.

Details & Vim help

Example replayed in Vim

Set a mark. This Ex reference uses the full command name; the alphabetical index omits arguments. Supply the ranges, arguments, flags and prerequisite state documented in the linked help. Press Enter to submit a complete command. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.