Movement
h Move cursor leftj Move cursor downk Move cursor upl Move cursor right
Ctrl + b Move backward one full screenCtrl + f Move forward one full screenCtrl + d Move forward half a screenCtrl + u Move back half a screen
H Move to the top of ScreenL Move to bottom of the Screen
w Jump forward to start of wordb Jump backwards to the start of a wordgg Go to the first line of the documentG Go to the last line of the document5gg or 5G Go to line 5
Insert mode
i Insert before the cursoro Insert on a new line below the current lineEsc Exit insert mode
Visual mode cut and paste
y Copy (yank) marked textp Put (paste) the clipboard after cursord Delete marked text
yy Copy (yank) a line5yy Copy (yank) 5 linesdd Delete (cut) a line5dd Delete (cut) 5 lines
Search and replace
/term Search forward for «term»?term Search backward for «term»n Repeat search, same directionN Repeat search, opposite direction
Editing
u UndoCtrl+r Redo
Saving and exiting
:w Save (write), don’t exit:wq Save (write) and quit:q Quit, only possible without changes:q! Force quit, without saving