Vim Keyboard Shortcuts

Vim keyboard shortcut reference covering 55 bindings for Windows, Mac & Linux. Commonly searched bindings include Move Left, Move Down, and Move Up. 55 of 55 shortcuts are verified against official Vim documentation, each with a linked source when available. Search by action name, filter by category, look up what a key combination does, print a cheat sheet, or practice with flashcards.

Official Vim documentation

Editing

ActionDescriptionWindowsMacVerifiedSource
Delete Line Delete current line dd dd Windows, macOS, Linux Source
Yank Line Copy current line yy yy Windows, macOS, Linux Source
Paste After Paste after cursor P P Windows, macOS, Linux Source
Paste Before Paste before cursor P P Windows, macOS, Linux Source
Undo Undo last change U U Windows, macOS, Linux Source
Redo Redo undone change Ctrl+R Ctrl+R Windows, macOS, Linux Source
Delete Char Delete character under cursor X X Windows, macOS, Linux Source
Replace Char Replace character under cursor R R Windows, macOS, Linux Source
Change Inner Word Change word under cursor ciw ciw Windows, macOS, Linux Source
Change Around Word Change word including space caw caw Windows, macOS, Linux Source
Delete Inside Quotes Delete inside double quotes D+I+" D+I+" Windows, macOS, Linux Source
Delete Around Quotes Delete including double quotes D+A+" D+A+" Windows, macOS, Linux Source
Repeat Last Repeat last command . . Windows, macOS, Linux Source
Join Lines Join current and next line J J Windows, macOS, Linux Source
Toggle Case Toggle character case ~ ~ Windows, macOS, Linux Source
Insert Before Enter insert mode before cursor I I Windows, macOS, Linux Source
Append Enter insert mode after cursor A A Windows, macOS, Linux Source
Open Below Open line below and insert O O Windows, macOS, Linux Source
Open Above Open line above and insert O O Windows, macOS, Linux Source
Delete Word Back Delete word before cursor in insert Ctrl+W Ctrl+W Windows, macOS, Linux Source
Delete Line Back Delete to start of line in insert Ctrl+U Ctrl+U Windows, macOS, Linux Source

File

ActionDescriptionWindowsMacVerifiedSource
Save and Quit Write and quit ZZ ZZ Windows, macOS, Linux Source
Quit Without Save Quit without saving ZQ ZQ Windows, macOS, Linux Source
Write File Save current file :w :w Windows, macOS, Linux Source
Quit Quit Vim :q :q Windows, macOS, Linux Source
Write and Quit Save and exit :wq :wq Windows, macOS, Linux Source
Save and Exit Save and exit (alt) :x :x Windows, macOS, Linux Source
Edit File Open another file :e :e Windows, macOS, Linux Source

General

ActionDescriptionWindowsMacVerifiedSource
Exit Insert Return to normal mode Escape Escape Windows, macOS, Linux Source

Navigation

ActionDescriptionWindowsMacVerifiedSource
Move Left Move cursor left H H Windows, macOS, Linux Source
Move Down Move cursor down J J Windows, macOS, Linux Source
Move Up Move cursor up K K Windows, macOS, Linux Source
Move Right Move cursor right L L Windows, macOS, Linux Source
Next Word Move to start of next word W W Windows, macOS, Linux Source
Previous Word Move to start of previous word B B Windows, macOS, Linux Source
End of Word Move to end of word E E Windows, macOS, Linux Source
Line Start Move to beginning of line 0 0 Windows, macOS, Linux Source
Line End Move to end of line $ $ Windows, macOS, Linux Source
File Start Go to first line gg gg Windows, macOS, Linux Source
File End Go to last line G G Windows, macOS, Linux Source
Jump Bracket Jump to matching bracket % % Windows, macOS, Linux Source

Search

ActionDescriptionWindowsMacVerifiedSource
Search Word Search word under cursor * * Windows, macOS, Linux Source
Next Match Go to next search match N N Windows, macOS, Linux Source
Previous Match Go to previous search match N N Windows, macOS, Linux Source
Search Forward / / Windows, macOS, Linux Source
Search Backward ? ? Windows, macOS, Linux Source
Clear Highlight Clear search highlighting :noh :noh Windows, macOS, Linux Source

View

ActionDescriptionWindowsMacVerifiedSource
Half Page Down Scroll half page down Ctrl+D Ctrl+D Windows, macOS, Linux Source
Half Page Up Scroll half page up Ctrl+U Ctrl+U Windows, macOS, Linux Source
Center Line Center cursor on screen zz zz Windows, macOS, Linux Source
Line Numbers Toggle line numbers :set number :set number Windows, macOS, Linux Source

Window

ActionDescriptionWindowsMacVerifiedSource
Vertical Split Split window vertically :vs :vs Windows, macOS, Linux Source
Horizontal Split Split window horizontally :sp :sp Windows, macOS, Linux Source
New Tab Open new tab :tabnew :tabnew Windows, macOS, Linux Source
Close Buffer Close current buffer :bd :bd Windows, macOS, Linux Source

← All apps on Shortcut Atlas

Loading Shortcut Atlas…