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 savingAdvertisement
Last updated: January 2026