Vim
Basic Navigation
Section titled “Basic Navigation”h/j/k/l- Move cursor left/down/up/rightw/b- Jump forward/backward by word0/$- Move to start/end of linegg/G- Go to first/last line
i- Enter insert mode before cursora- Enter insert mode after cursorESCorCTRL+[- Return to normal modev- Enter visual mode for selection
Essential Commands
Section titled “Essential Commands”:w- Save file:q- Quit (:q!to force quit without saving):wq- Save and quitu- UndoCTRL+r- Redodd- Delete lineyy- Copy linep- Paste after cursor
Text Operations
Section titled “Text Operations”x- Delete characterdw- Delete wordcw- Change word/pattern- Search forwardn/N- Next/previous search result:%s/old/new/g- Replace all occurrences
Full tutorial
Section titled “Full tutorial”You can find a more in-depth tutorial here if you are interested.