Vim Recall繁體中文

Set mark {A-Za-z} at cursor position

m{A-Za-z}

Example

Normal 0 / 1
first line
  second line
third line
fourth line
fifth line
Cursor on line 3, column 2

Set mark {A-Za-z} at cursor position.

Local marks

'a
line 2, column 4
'b
line 4, column 3
'.
line 2, column 1
Before & after
Before
first line
  second line
third line
fourth line
fifth line
Cursor on line 3, column 2

Local marks

'a
line 2, column 4
'b
line 4, column 3
'.
line 2, column 1
After
first line
  second line
third line
fourth line
fifth line
Cursor on line 3, column 2

Local marks

'a
line 3, column 2
'b
line 4, column 3
'.
line 2, column 1

Start in Normal mode. Local marks a and b are prepared on the second and fourth lines; the panel shows actual mark positions.

Details & Vim help

Example replayed in Vim

Set mark {A-Za-z} at cursor position. Use in Normal mode. Braced names stand for the required argument and are not typed literally. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.