A comprehensive reference for Vim editor commands and shortcuts
Enter Insert mode
Exit Insert mode (return to Normal mode)
Enter Visual mode
Enter Visual Line mode
Enter Visual Block mode
Enter Command-line mode
Save file
Quit
Save and quit
Quit without saving
Open file
Save as
Insert before cursor
Insert at beginning of line
Append after cursor
Append at end of line
Open new line below current line
Open new line above current line
Delete character under cursor
Delete character before cursor
Delete word
Delete entire line
Delete from cursor to end of line
Delete to end of line
Delete to beginning of line
Replace a single character
Change word
Change entire line
Change from cursor to end of line
Substitute character (delete and insert)
Substitute line (delete and insert)
Yank (copy) entire line
Yank (copy) word
Paste after cursor
Paste before cursor
Undo
Redo
Start Visual character mode
Start Visual line mode
Start Visual block mode
Move to other end of selection
Exit Visual mode
Delete selected text
Yank (copy) selected text
Change selected text
Indent selected text
Un-indent selected text
Toggle case of selected text
Search forward for pattern
Search backward for pattern
Repeat search in same direction
Repeat search in opposite direction
Search forward for word under cursor
Search backward for word under cursor
Replace all occurrences in file
Replace all occurrences with confirmation
Replace all occurrences in current line
Replace between line numbers #,#
Set mark 'a' at cursor position
Jump to mark 'a'
Jump to beginning of line of mark 'a'
Jump to previous location
Jump to next location
Create fold
Open fold
Close fold
Toggle fold
Open all folds
Close all folds
Record macro 'a'
Stop recording macro
Execute macro 'a'
Execute last used macro
Split window horizontally
Split window vertically
Split window horizontally
Split window vertically
Switch between windows
Quit current window
Create new tab
Go to next tab
Go to previous tab