Press q to dismiss, to toggle folds Tuxracer's cheatsheet {{{1 ------------------------- cursor movement: Left h N Right l N Up k N Down j N Half-page up/down «C-U»/ «C-D» N Page up/down «C-B»/ «C-F» N ------------------------- Save files/ Quit: Quit (window) :q N Save and quit (window) :x (ZZ) N Quit without saving :q! (ZQ) N Save all and exit Vim :xa N Exit Vim without saving :qa! N Replace mode/overwrite R N ------------------------- Windows: New window «C-w»n N Switch windows «C-ww» N Close window «C-w»c N Close/quit window «C-w»q N Split horizontally «C-w»s N Split vertically «C-w»v N Find and replace :%s/‹P›/‹P›/ V Idem, ask to confirm :%s/‹P›/‹P›/c V ------------------------- Visual commands: shift text right > shift text left < yank (copy) marked text y delete marked text d switch case ~ (marked) to lowercase u (marked) to uppercase U ------------------------- Various commands: Special character C-k‹c› sign I Copy 1 character yl N Copy 1 word yiw N Copy all :%y N Redraw the screen C-L N use mouse :set mouse=a N Ignore case :set ic/noic N ------------------------- Folding: Fold zc *N Unfold zv *N Toggle fold za *N Fold all zM N Tips: ------------------------- Rico's cheatsheet: devhints.io/vim}}}