Vim Cheat Sheet
Transform, format, and optimize your data instantly with this free client-side tool.
Modes
Insert mode (before cursor)
Insert mode (beginning of line)
Append mode (after cursor)
Append mode (end of line)
Open new line below cursor and enter insert mode
Open new line above cursor and enter insert mode
Visual mode (character selection)
Visual line mode (line selection)
Visual block mode
Exit current mode (return to Normal mode)
Navigation
Move left
Move down
Move up
Move right
Move forward to beginning of next word
Move backward to beginning of previous word
Move forward to end of current word
Move to beginning of line
Move to first non-blank character of line
Move to end of line
Move to first line of file
Move to last line of file
Move to a specific line number
Editing
Delete character under cursor
Replace character under cursor with <char>
Delete (cut) current line
Delete to next word
Delete to end of line
Yank (copy) current line
Yank (copy) word
Paste after cursor
Paste before cursor
Undo last action
Redo last undone action
Search & Replace
Search forward for <pattern>
Search backward for <pattern>
Repeat search in same direction
Repeat search in opposite direction
Replace first occurrence of 'old' with 'new' on current line
Replace all occurrences of 'old' with 'new' on current line
Replace all occurrences of 'old' with 'new' throughout file
Replace all occurrences with confirmation
Save & Quit
Write (save) file
Write to a new file
Quit (fails if there are unsaved changes)
Quit and discard changes
Write and quit
Write and quit (same as :wq)
Write and quit (shortcut)
Multiple Files
Edit a file in a new buffer
Go to next buffer
Go to previous buffer
Delete current buffer (close file)
Open a file in a new horizontal split
Open a file in a new vertical split
Move between split windows
Open a file in a new tab
Go to next tab
Go to previous tab
Advanced
Explore advanced configurations for Vim
Performance tuning best practices for Vim
Run security checks and validation for Vim
🔥 Similar Tools
Explore LibraryFrequently Asked Questions
Got questions? We've got answers.