ESC
- Return to NORMAL modei
- Enter INSERT mode (insert before cursor)v
- Enter VISUAL modeA
- Enter INSERT mode at end of line
h j k l
- Left, down, up, rightw
- Next wordb
- Previous word0
- Start of line$
- End of linegg
- Top of fileG
- Bottom of file
dd
- Delete linex
- Delete character under cursoru
- UndoCTRL+r
- Redoo
- New line below (enter INSERT mode)O
- New line above (enter INSERT mode)
yy
- Copy linep
- Paste after cursorP
- Paste before cursor]p
- Paste on new line below with proper indentation
di"
- Delete inside quotesci(
- Change inside parenthesesya{
- Yank (copy) around curly braces
/pattern
- Search forwardn
- Next occurrenceN
- Previous occurrence:noh
orESC ESC
- Clear search highlighting
:Ex
- Open file explorer-
- Go up directoryEnter
- Open file/directoryd
- Create directory%
- Create file:bd
orCTRL+^
- Exit file explorer
:w
- Save:q
- Quit:wq
- Save and quit:q!
- Quit without saving