Section: Core operators

Yank with a motion

vim
vim
yw  y$  yy
Explanation

`y` copies text; pair it with `p` or `P` to paste later.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Core operators
Delete with a motion
Delete words, lines, or ranges.
OpenIn sheetvimsame section
Change with a motion
Delete target text and enter insert mode.
OpenIn sheetvimsame section
Repeat the last change
Run your last edit again.
OpenIn sheetvimsame section
Operate on a word
Change, delete, or yank the current word cleanly.
OpenIn sheetvim1 tag match
Prefix commands with counts
Repeat a motion or edit multiple times.
OpenIn sheetvim1 tag match
Operate inside quotes
Target a quoted string without touching delimiters.
OpenIn sheetvim1 tag match