Vim Modal text editor
Light · Postcard
102 × 152 mm · PDF
Dark · Postcard
102 × 152 mm · PDF
Ink saver · Postcard
102 × 152 mm · PDF
Light · A4 landscape
297 × 210 mm · PDF
Dark · A4 landscape
297 × 210 mm · PDF
Ink saver · A4 landscape
297 × 210 mm · PDF
Light · A3 landscape
420 × 297 mm · PDF
Dark · A3 landscape
420 × 297 mm · PDF
Ink saver · A3 landscape
420 × 297 mm · PDF
Start here
Concepts
- Normal commands
- Insert typing
- Normal commands
- Visual select
Modes & Files
Motions
Insert
Operators
| Keys | Effect |
|---|---|
d i w |
delete word |
c i " |
change inside quotes |
y a p |
yank paragraph |
d t , |
delete up to comma |
> i { |
indent block |
Text Objects
Visual Mode
Search & Replace
| Pattern | Matches |
|---|---|
\<word\> |
whole word |
\v(a|b) |
very magic: no escapes |
\{-} |
non-greedy repeat |
\zs |
start of reported match |
\c |
ignore case |
Registers & Macros
| Keys | Effect |
|---|---|
"+y |
yank to clipboard |
"+p |
put from clipboard |
Windows & Buffers
Folds & Misc
Recipes
vim +42 <file> # at line 42vim +/<pat> <file>vim -d a b # difffind . -name '*.c' | vim -
:%s/\<old\>/new/gc
Ctrl+V # select columnj j j # extend downI // Esc # prefix all
q a # record0 f , r ; # your editj q # stop5 @ a # play 5 times



