Skip to content

↑↓ moveEnter openEsc close

Vim keyboard shortcuts cheat sheet

Every default Vim shortcut on one printable page. Choose your system, then print or save as PDF.

Vim keyboard shortcuts

Windows · version 9.1 · 73 shortcuts

Hotkeypediahotkeypedia.com

Modes

  • Insert before the cursorIII
  • Append after the cursorAAA
  • Insert at the start of the lineShiftIShiftIShiftI
  • Append at the end of the lineShiftAShiftAShiftA
  • Open a new line below and insertOOO
  • Open a new line above and insertShiftOShiftOShiftO
  • Return to Normal modeEscorCtrl[EscorCtrl[EscorCtrl[
  • Start Visual mode (select characters)VVV
  • Start Visual Line mode (select lines)ShiftVShiftVShiftV
  • Start Visual Block mode (select a column)CtrlVCtrlVCtrlV
  • Start Replace mode (overtype)ShiftRShiftRShiftR

Moving

  • Move leftHHH
  • Move downJJJ
  • Move upKKK
  • Move rightLLL
  • Jump to the start of the next wordWWW
  • Jump back to the start of the wordBBB
  • Jump to the end of the wordEEE
  • Go to the start of the line000
  • Go to the first non-blank characterShift6Shift6Shift6
  • Go to the end of the lineShift4Shift4Shift4
  • Go to the first lineG,GG,GG,G
  • Go to the last lineShiftGShiftGShiftG
  • Jump to the matching bracketShift5Shift5Shift5
  • Jump to the next blank lineShift]Shift]Shift]
  • Jump to the previous blank lineShift[Shift[Shift[
  • Cursor to the top of the screenShiftHShiftHShiftH
  • Cursor to the middle of the screenShiftMShiftMShiftM
  • Cursor to the bottom of the screenShiftLShiftLShiftL
  • Scroll a page downCtrlFCtrlFCtrlF
  • Scroll a page upCtrlBCtrlBCtrlB
  • Scroll half a page downCtrlDCtrlDCtrlD
  • Scroll half a page upCtrlUCtrlUCtrlU
  • Center the cursor line on screenZ,ZZ,ZZ,Z
  • Jump back to the previous positionCtrlOCtrlOCtrlO
  • Jump forward againCtrlICtrlICtrlI

Editing

  • UndoUUU
  • RedoCtrlRCtrlRCtrlR
  • Delete the character under the cursorXXX
  • Delete (cut) the lineD,DD,DD,D
  • Delete to the end of the lineShiftDShiftDShiftD
  • Delete to the start of the next wordD,WD,WD,W
  • Change (replace) the wordC,WC,WC,W
  • Change the whole lineC,CC,CC,C
  • Change to the end of the lineShiftCShiftCShiftC
  • Delete the character and insertSSS
  • Copy (yank) the lineY,YY,YY,Y
  • Copy (yank) to the next wordY,WY,WY,W
  • Paste after the cursorPPP
  • Paste before the cursorShiftPShiftPShiftP
  • Join the line below to this oneShiftJShiftJShiftJ
  • Repeat the last change...
  • Indent the lineShift.,Shift.Shift.,Shift.Shift.,Shift.
  • Outdent the lineShift,,Shift,Shift,,Shift,Shift,,Shift,
  • Switch the case of the characterShift`Shift`Shift`
  • Add one to the number under the cursorCtrlACtrlACtrlA
  • Subtract one from the number under the cursorCtrlXCtrlXCtrlX
  • Complete the word from the fileCtrlNCtrlNCtrlN

Search

  • Search forward///
  • Search backwardShift/Shift/Shift/
  • Next matchNNN
  • Previous matchShiftNShiftNShiftN
  • Search for the word under the cursorShift8Shift8Shift8
  • Search backward for the word under the cursorShift3Shift3Shift3

Files and windows

  • Save the fileShift;,W,EnterShift;,W,EnterShift;,W,Enter
  • QuitShift;,Q,EnterShift;,Q,EnterShift;,Q,Enter
  • Save and quitShiftZ,ShiftZShiftZ,ShiftZShiftZ,ShiftZ
  • Quit without savingShiftZ,ShiftQShiftZ,ShiftQShiftZ,ShiftQ
  • Split the window horizontallyCtrlW,SCtrlW,SCtrlW,S
  • Split the window verticallyCtrlW,VCtrlW,VCtrlW,V
  • Go to the next windowCtrlW,WCtrlW,WCtrlW,W
  • Close the windowCtrlW,QCtrlW,QCtrlW,Q
  • Make all windows the same sizeCtrlW,=CtrlW,=CtrlW,=
Default bindings for Vim, version 9.1, checked against Bram Moolenaar and the Vim community's documentation.hotkeypedia.com/vim/cheat-sheet/

Every default Vim shortcut in version 9.1, in the same groups as the full list. Pick a system, then print. The sheet is sized to fill a portrait A4 or Letter page (two pages for the longest apps); choose "Save as PDF" in the print dialog for a file. Rows showing a dash have no default binding on that system.