Essential Vim commands and shortcuts for efficient text editing. Master the powerful Vim editor with this comprehensive reference guide and interactive Vim simulator.
h j k l - Move
w b - Word movement
0 $ - Line start/end
gg G - File start/endi a - Insert
o O - New line
dd yy - Delete/Copy
p P - PasteVim (Vi IMproved) is a highly configurable text editor built to make creating and changing any kind of text very efficient. It is an improved version of the vi editor distributed with most UNIX systems.

Essential Vim commands and shortcuts for efficient text editing. Master the powerful Vim editor with this comprehensive reference guide.
h, j, k, lMove left, down, up, rightwMove to next wordbMove to previous word0Move to beginning of line$Move to end of lineggGo to first lineGGo to last line:nGo to line nCtrl+fPage downCtrl+bPage upiInsert mode at cursorIInsert at beginning of lineaInsert after cursorAInsert at end of lineoOpen new line belowOOpen new line aboveEscReturn to normal modevVisual modexDelete characterddDelete linedwDelete wordd$Delete to end of lined0Delete to beginning of lineyyCopy lineywCopy wordpPaste after cursorPPaste before cursoruUndo/patternSearch forward?patternSearch backwardnNext search resultNPrevious search result:%s/old/new/gReplace all occurrences:s/old/new/gReplace in current line:nohClear search highlighting:wSave file:qQuit:wqSave and quit:q!Quit without saving:e filenameOpen file:w filenameSave as:r filenameRead file into currentVim is often called a "programmer's editor," and so useful for programming that many consider it an entire IDE. Key features include:
Master Vim with our structured learning approach: