IDE

🟢Vim Keyboard Shortcuts

35 essential shortcuts for Vim

Mode Switching

ShortcutAction
iEnter Insert mode before cursor
aEnter Insert mode after cursor
oOpen new line below and enter Insert mode
OOpen new line above and enter Insert mode
vEnter Visual (character) mode
VEnter Visual Line mode
Ctrl+vEnter Visual Block mode
EscReturn to Normal mode

Navigation

ShortcutAction
h/j/k/lMove left / down / up / right
w/bJump to next / previous word start
eJump to end of word
0/$Jump to start / end of line
gg/GJump to first / last line of file
Ctrl+d/Ctrl+uScroll half-page down / up
%Jump to matching bracket
f{char}Jump to next occurrence of {char} on line
/{pattern}Search forward for pattern
n/NNext / previous search result
*Search forward for word under cursor

Editing

ShortcutAction
ddDelete (cut) entire line
yyYank (copy) entire line
p/PPaste after / before cursor
xDelete character under cursor
ciwChange inner word (delete word, enter Insert)
diwDelete inner word
uUndo last change
Ctrl+rRedo last undone change
. (dot)Repeat last editing command
>>/<<Indent / un-indent line

Command

ShortcutAction
:wSave file
:qQuit Vim
:wq/ZZSave and quit
:s/old/new/gSubstitute all on current line
:%s/old/new/gSubstitute all in entire file
:e filenameOpen file for editing

About Vim Shortcuts

Vim is a highly configurable, modal text editor built to make editing efficient. Originally released in 1991 as an improved version of the Unix vi editor, Vim uses different modes — Normal, Insert, Visual, and Command-line — each optimized for specific tasks. Vim's modal design means most editing happens without modifier keys, using single keystrokes to navigate, delete, copy, and transform text. Mastering Vim shortcuts dramatically accelerates text editing speed once the initial learning curve is overcome.

This reference covers 35 essential Vim keyboard shortcuts organized across 4 categories: Mode Switching, Navigation, Editing, and more. Each shortcut lists both macOS and Windows/Linux key combinations where applicable, making it easy to find the right key combo regardless of your operating system.

Learning keyboard shortcuts is one of the highest-leverage investments you can make in your daily workflow. Studies show that developers and designers who rely on keyboard shortcuts are measurably faster at common tasks. Rather than memorizing every shortcut at once, focus on the ones you use most frequently and gradually expand your repertoire.

Bookmark this page for quick reference whenever you need to look up a Vim shortcut. The categorized layout makes it easy to find shortcuts by their function, whether you need navigation, editing, or specialized commands.

Related apps