:w - Write (Save):wq - Write and quit:q - Quit, fails if unsaved:q! - Quit, even if unsavedESC - Return to normal modei - Insert at cursor positiona - Insert after cursor positiono - Insert on line below cursorv - Enter visual modectrl+v - Enter visual mode (vertical)V - Enter visual mode (full lines)u [in visual mode] - To lowercaseU [in visual mode] - To uppercaseUndo/Redou - Undoctrl+r - Redo$ - Jump to end of line^ - Jump to start of lineh - Move leftj - Move downk - Move upl - Move rightH - Move to top of screenM - Move to middle of screenL - Move to bottom of screengg - Move to start of fileG - Move to end of file420gg - Move to line 420w - Jump to start of next wordb - Jump to start of prev wordSearch
/something - Search for stringn - Jump to next matchN - Jump to prev match/something\c - Case insensitive searchy [in visual mode] - Copy highlighted textyy - Copy the current lined [in visual mode] - Cut highlighted textdd - Cut the current lineCtrl+Shift+V - Paste from external clipboard:%s/find/replace/g:s/find/replace/g [in visual mode] :'<,'>s/find/replace/g [in visual mode] :%s/address/replace/g. - Any single character* - Up to unlimited characters