Repeat a motion or edit multiple times.

Section: Counts, join, undo, and replace

Prefix commands with counts

vim
vim
3w  5j  2dd
Explanation

Counts work with many motions, operators, and macros.

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 Counts, join, undo, and replace
Join lines
Merge lines cleanly.
OpenIn sheetvimsame section
Replace a single character
Overwrite one character without entering insert mode.
OpenIn sheetvimsame section
Undo and redo
Walk backward and forward through edits.
OpenIn sheetvimsame section
Delete with a motion
Delete words, lines, or ranges.
OpenIn sheetvim1 tag match
Operate on a word
Change, delete, or yank the current word cleanly.
OpenIn sheetvim1 tag match
Change with a motion
Delete target text and enter insert mode.
OpenIn sheetvim1 tag match