Skip to content

Vim shortcuts

Vim Keyboard Shortcuts

General


:help access help :wq write file + quit :q exit

Edit


u undo . redo y y copy line text p paste d d cut current line d e delete from cursor to eol d w delete word to right o open black line below O open black line below v + arrows select lines while moving { / } move up/down code blocks

Movement


e move by end of word forward w move by word forward b move 1 word backward Ctrl+Home top of page Ctrl+End bottom of page $ jump to end of line ^ jump to start of line

Extras


:tf open up file tree in current directory :t open up file tree

Window navigation


ctrl ws create a horizontal split ctrl wv create a vertical split ctrl wq close the current window ctrl ww iterate over the current windows