Vim & Nano Cheat Sheet
Interactive keyboard shortcut reference for Vim and Nano. Toggle between editors, search shortcuts, and browse by category.
🧭Normal Mode - Navigation(18)
Move cursor left
Move cursor down
Move cursor up
Move cursor right
Jump forward to start of next word
Jump backward to start of word
Jump forward to end of word
Jump to start of line
Jump to end of line
Go to first line of document
Go to last line of document
Scroll half-page down
Scroll half-page up
Jump to next paragraph/block
Jump to previous paragraph/block
Jump to matching bracket
Jump forward to character on current line
Jump backward to character on current line
✏️Normal Mode - Editing(14)
Insert before cursor
Insert after cursor
Open new line below and enter insert mode
Open new line above and enter insert mode
Delete character under cursor
Delete (cut) entire line
Yank (copy) entire line
Paste after cursor
Paste before cursor
Undo last change
Redo last undone change
Repeat last command
Join current line with line below
Toggle case of character under cursor
🔍Normal Mode - Search(6)
Search forward for pattern
Search backward for pattern
Jump to next search match
Jump to previous search match
Search forward for word under cursor
Search backward for word under cursor
🎯Visual Mode(8)
Start character-wise visual selection
Start line-wise visual selection
Start block (column) visual selection
Delete selected text
Yank (copy) selected text
Indent selected text right
Indent selected text left
Toggle case of selected text
💻Command Mode(10)
Save (write) file
Quit editor
Save and quit
Quit without saving (force)
Open file for editing
Replace all occurrences in file
Show line numbers
Horizontal split window
Vertical split window
Open new tab
📋Registers & Macros(5)
Yank into register "a"
Paste from register "a"
Record macro into register "a" (qa to start, q to stop)
Execute macro stored in register "a"
Re-run last executed macro
🪟Window Management(8)
Split window horizontally
Split window vertically
Cycle through windows
Move to left window
Move to window below
Move to window above
Move to right window
Close current window
📦Text Objects(8)
Inner word (select word without surrounding spaces)
A word (select word with surrounding space)
Inner double-quoted string
A double-quoted string (including quotes)
Inner parentheses content
A parenthesized block (including parens)
Inner tag (content between HTML/XML tags)
A tag block (including tags)