Vim Motions & Cheatsheet
Explore all vim commands by category. Find quickly with fuzzy search.
Motions
Move left
Move down
Move up
Move right
Jump to start of next word
w → "hello |world"
💡 Navigate word by word
Jump to start of previous word
Jump to end of word
Jump to next WORD (whitespace-delimited)
💡 Skips punctuation
Jump to previous WORD
Jump to end of WORD
Go to start of line
Go to end of line
Go to first non-blank character
Go to first line
Go to last line
Go to line number
10G → go to line 10
Jump to previous paragraph
Jump to next paragraph
Jump to matching bracket
💡 Essential for code navigation
Find char forward on line
f( → jump to next (
💡 Fast in-line navigation
Find char backward on line
Move to before char forward
Move to after char backward
Repeat last f/F/t/T
Repeat last f/F/t/T in reverse
Scroll half page down
Scroll half page up
Move to top of screen
Move to middle of screen
Move to bottom of screen
Operators
Delete (operator)
dw → delete word
💡 Combine with motions: dd, d$, dG
Change (delete + insert)
cw → change word
💡 Most used operator for editing
Yank (copy)
yy → yank line
Paste after cursor
Paste before cursor
Delete entire line
Change entire line
Yank entire line
Delete to end of line
Change to end of line
Delete character under cursor
Replace single character
ra → replace with a
Toggle case
Lowercase (operator)
guw → lowercase word
Uppercase (operator)
gUw → uppercase word
Indent right (operator)
>> → indent line
Indent left (operator)
Repeat last change
💡 The most powerful vim command
Undo
Redo
Text Objects
Inner word
diw → delete inner word
💡 Works regardless of cursor position in word
A word (includes surrounding space)
Inner double quotes
ci" → change inside quotes
💡 Perfect for editing strings
Inner single quotes
Inner parentheses
ci) → change inside parens
Inner brackets
Inner braces
Inner tag (HTML)
cit → change inside tag
💡 Essential for HTML editing
Inner paragraph
Inner sentence
A double quoted string (includes quotes)
A parenthesized block (includes parens)
Visual Mode
Enter visual mode (character)
Enter visual line mode
Enter visual block mode
💡 Edit multiple lines at once
Move to other end of selection
Reselect last visual selection
Registers
Use register a
"ayy → yank line into register a
💡 Multiple clipboards
Last yank register
💡 Paste what you yanked, not what you deleted
System clipboard register
Show all registers
Macros
Start recording macro to register
qa → start recording to a
💡 Automate repetitive edits
Stop recording macro
Play macro from register
@a → play macro a
Replay last macro
Play macro n times
10@a → play macro a 10 times
Windows/Tabs
Horizontal split
Vertical split
Navigate between splits
Equalize split sizes
Open new tab
Next / previous tab
Search/Replace
Search forward
Search backward
Next search result
Previous search result
Search word under cursor forward
Search word under cursor backward
Replace first on line
Replace all on line
Replace all in file
💡 Global find and replace
Replace all with confirmation