Tools
Vim
Modal editing — motions, operators, and commands.
Modes
i / aInsert before / after cursorI / AInsert at line start / endo / OOpen line below / abovev / VVisual / visual-lineCtrl-vVisual blockEscBack to normal modeMotions
w / bNext / prev word0 / $Line start / endgg / GFile start / end{ / }Prev / next paragraph%Matching bracketf<c> / t<c>Find / till charEditing
dd / yyDelete / yank linedw / cwDelete / change wordx / r<c>Delete / replace charp / PPaste after / beforeu / Ctrl-rUndo / redo. Repeat last changeSearch & replace
/patternSearch forwardn / NNext / prev match*Search word under cursor:%s/a/b/gReplace all in file:%s/a/b/gcReplace with confirmFiles & windows
:wSave:q / :q!Quit / force quit:wq / ZZSave and quit:sp / :vspSplit horizontal / verticalCtrl-w wCycle windowsOperators + motions
diwDelete inner wordci"Change inside quotesyi(Yank inside parensdapDelete a paragraphd3jDelete 3 lines downCombine an operator (d, c, y) with a motion or text object.