Vim Keyboard Shortcuts for Windows: All 55 in One Table

Vim has a keyboard shortcut for a lot of what you click every day. Here are 55 that work on Windows, grouped by what you’re trying to do.

We checked every one against Vim help: Quick reference guide (quickref.txt) on October 21, 2026.

Moving Around


ShortcutWhat it does
hMove left one character
jMove down one line
kMove up one line
lMove right one character
wMove forward to the start of the next word
bMove back to the start of the previous word
0Go to the first character of the line
$Go to the last character of the line
ggGo to the first line of the file
GGo to the last line of the file
:42Go to line 42 (type any line number)
Ctrl + FScroll forward one page
Ctrl + BScroll back one page
%Jump to the matching bracket or brace

Insert Mode


ShortcutWhat it does
iInsert text before the cursor
IInsert text at the start of the line
aInsert text after the cursor
AInsert text at the end of the line
oOpen a new line below and start typing
OOpen a new line above and start typing
EscLeave Insert mode and go back to Normal mode

Editing


ShortcutWhat it does
xDelete the character under the cursor
ddDelete the current line
dwDelete from the cursor to the start of the next word
d$Delete from the cursor to the end of the line
rReplace the character under the cursor with the next key you type
JJoin the next line onto the current line
>>Indent the current line
<<Unindent the current line
uUndo the last change
Ctrl + RRedo the last undone change
.Repeat the last change

Copy, Cut and Paste


ShortcutWhat it does
yyYank (copy) the current line
ywYank from the cursor to the start of the next word
y$Yank from the cursor to the end of the line
pPut (paste) after the cursor
PPut (paste) before the cursor
vStart selecting characters (Visual mode)
VStart selecting whole lines
Ctrl + VStart selecting a rectangular block

Search and Replace


ShortcutWhat it does
/patternSearch forward for a pattern
?patternSearch backward for a pattern
nGo to the next match
NGo to the previous match
*Search forward for the word under the cursor
:%s/old/new/gReplace every “old” with “new” in the whole file

Files and Windows


ShortcutWhat it does
:wSave the file
:wqSave and quit
:xSave only if changed, then quit
:qQuit (fails if there are unsaved changes)
:q!Quit and throw away unsaved changes
:e filenameOpen another file
:spSplit the window in two, one above the other
:vspSplit the window in two, side by side
:set numberShow line numbers

Good to know: Most keys work in Normal mode: press Esc first if you are typing text. Commands that start with : are typed at the bottom and run with Enter.

Good to know: Vim is case-sensitive: p and P do different things.

Get the Excel and PDF Version


Everything above is free. Bookmark this page and use it anytime.

If you’d rather have it on your desk, the download below is a sortable Excel file plus a printable one-page PDF of all 55 shortcuts, for $0.99.

Want One Key to Do More?


Built-in shortcuts only work while Vim is the active window, and you can’t add new ones. These tools let you pick your own hotkeys:

Comments are closed.