Modes
| Key | Mode |
i / a / A | Insert / append / end-of-line insert |
v / V / Ctrl-v | Visual char / line / block |
: | Command-line |
R | Replace mode |
Esc | Back to Normal |
Motions (sample)
| Motion | Moves to |
w / b / e | Next word / back word / end of word |
0 / ^ / $ | Start of line / first non-blank / end |
gg / G | First / last line of buffer |
f{char} / t{char} | Find / till on line |
% | Matching bracket |
Operators
| Op | Action |
d | Delete (= cut) |
c | Change (delete + insert) |
y | Yank (copy) |
gu / gU | Lowercase / uppercase |
> / < | Indent / dedent |
Compose: ci" change inside quotes, dap delete a paragraph, gg=G reindent entire file.
Search & substitute
/pattern\c " case-insensitive search
:%s/old/new/gc " global replace with confirm
:noh " clear search highlight