Modes
i - Insert mode
Esc - Normal mode
: - Command modeNavigation
h j k l - Left, down, up, right
gg - Go to top
G - Go to bottom
0 - Start of line
$ - End of lineEditing
x - Delete character
dd - Delete line
yy - Copy line
p - Paste
u - Undo
Ctrl+r - RedoSave/Quit
:w - Save
:q - Quit
:wq - Save and quit
:q! - Quit without saving
Common mistakes / Pitfalls
- People often copy a command or pattern without adapting placeholders, which can break production workflows unexpectedly.
- It is easy to forget environment-specific differences, so always verify behavior in your shell, runtime, or API gateway before shipping.
- Many errors come from skipping small validation steps, so test with realistic sample input before relying on the result.
Last updated: February 2026