Vim Recall繁體中文

Set local mark a

ma

Example

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

Remember the current position in this buffer.

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

Remember the current position in this buffer.

m followed by a lowercase letter sets a local mark. Use `a for its exact position or apostrophe-a for the first nonblank on its line. The mark is attached to this buffer.