Vim Recall繁體中文

Like ', without changing the jumplist when jumping within the current buffer

g'{mark}

Example

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

Like ', without changing the jumplist when jumping within the current buffer.

Before & after
Before
one
  two
three
Cursor on line 1, column 1
After
one
  two
three
Cursor on line 2, column 3

Start in Normal mode. Local mark a is prepared on w of the second line.

Details & Vim help

Example replayed in Vim

Like ', without changing the jumplist when jumping within the current buffer. 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. A jump to a file mark in another buffer may change the jumplist.