Vim Recall繁體中文

Find the edges of a change or yank

`[ or `]

Example

Normal mode. Yanked Ada with yiw in Hello Ada!. Cursor moved elsewhere; no edits, yanks or writes since.

Before
Line: Hello Ada! Last yanked text: Ada Cursor: elsewhere

  1. `[ A in Ada · start of yanked text
  2. `] Final a in Ada · end of yanked text

After
After `[ : cursor on A in Ada After `] : cursor on the final a in Ada

Details & Vim help

Jump to Vim’s start or end mark for recently changed or yanked text.

Return to a recently changed or copied passage after moving away.

Changes, yanks and buffer writes replace these marks. After inserting before existing text, the end mark can land on the following character. Backtick jumps to the exact column; apostrophe variants jump to the line’s first nonblank.

Shows the boundaries after a characterwise yank of Ada. Later changes, yanks or buffer writes replace these marks.

Try it in Vim

  1. Make an edit or yank a passage.
  2. Type a backtick followed by [ to visit its start.
  3. Type a backtick followed by ] to visit its end.