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
| Shortcut | What it does |
|---|---|
| h | Move left one character |
| j | Move down one line |
| k | Move up one line |
| l | Move right one character |
| w | Move forward to the start of the next word |
| b | Move back to the start of the previous word |
| 0 | Go to the first character of the line |
| $ | Go to the last character of the line |
| gg | Go to the first line of the file |
| G | Go to the last line of the file |
| :42 | Go to line 42 (type any line number) |
| Ctrl + F | Scroll forward one page |
| Ctrl + B | Scroll back one page |
| % | Jump to the matching bracket or brace |
Insert Mode
| Shortcut | What it does |
|---|---|
| i | Insert text before the cursor |
| I | Insert text at the start of the line |
| a | Insert text after the cursor |
| A | Insert text at the end of the line |
| o | Open a new line below and start typing |
| O | Open a new line above and start typing |
| Esc | Leave Insert mode and go back to Normal mode |
Editing
| Shortcut | What it does |
|---|---|
| x | Delete the character under the cursor |
| dd | Delete the current line |
| dw | Delete from the cursor to the start of the next word |
| d$ | Delete from the cursor to the end of the line |
| r | Replace the character under the cursor with the next key you type |
| J | Join the next line onto the current line |
| >> | Indent the current line |
| << | Unindent the current line |
| u | Undo the last change |
| Ctrl + R | Redo the last undone change |
| . | Repeat the last change |
Copy, Cut and Paste
| Shortcut | What it does |
|---|---|
| yy | Yank (copy) the current line |
| yw | Yank from the cursor to the start of the next word |
| y$ | Yank from the cursor to the end of the line |
| p | Put (paste) after the cursor |
| P | Put (paste) before the cursor |
| v | Start selecting characters (Visual mode) |
| V | Start selecting whole lines |
| Ctrl + V | Start selecting a rectangular block |
Search and Replace
| Shortcut | What it does |
|---|---|
| /pattern | Search forward for a pattern |
| ?pattern | Search backward for a pattern |
| n | Go to the next match |
| N | Go to the previous match |
| * | Search forward for the word under the cursor |
| :%s/old/new/g | Replace every “old” with “new” in the whole file |
Files and Windows
| Shortcut | What it does |
|---|---|
| :w | Save the file |
| :wq | Save and quit |
| :x | Save only if changed, then quit |
| :q | Quit (fails if there are unsaved changes) |
| :q! | Quit and throw away unsaved changes |
| :e filename | Open another file |
| :sp | Split the window in two, one above the other |
| :vsp | Split the window in two, side by side |
| :set number | Show 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:
- Prompt Assistant: paste a saved :%s replace pattern or a code header block into Vim with a hotkey you pick
- Windows 11 Power User Tools: more keyboard-first tools for people who live in the keyboard

