Vim Cheatsheet

Power user.

Mode basics

Vim is modal. Most of the power lives in normal mode; insert mode is just for typing text. Composing commands across modes is what separates fluent users from new ones.

Navigation is what makes vim fast. Compose count plus motion plus object: 5dw deletes five words. The composition is the language; learn it once and the surface area shrinks.

Editing

Editing in normal mode composes verbs (d, c, y) with motions (w, b, $) and text objects (iw, i", ip). Verb plus object is the core grammar.

Search and replace is where vim earns its keep on a ten-thousand-line file. Learn the regex flavour; it is POSIX with vim extensions and worth the muscle memory.

Files and buffers

Vim handles many files at once via buffers. Most operators eventually pair vim with a fuzzy-finder plugin (fzf, telescope) but the core commands work standalone.