Vim
Help
Show help instructions and commands
Open user manual index
Navigate to topic (see navigation below), position cursor inside |...|
for topic filename and open
Exit help manual
General
Commands and actions are extended with modifiers and repeated using counts
Modifiers can be combined with counts to duplicate the modified action
Example: Delete three words (d
delete action, 3
count, w
word modifier)
Example: Move forward three words (3
count, w
word modifier)
Navigation
Move cursor Up / Down, Left / Right
Move by a number of lines or characters (eg. up 4 lines)
Move cursor to top / middle / bottom (High / Middle / Bottom) of page
Go to start of file
Go to end of file
Page down / up (f = forward, b = back) and half page (d = down, u = up)
Go to line number
Move to start, start (whitespace) and end of line
Move by word boundary to start of word forward / backward (delimiter / whole word)
Move by word boundary to end of word (delimiter / whole word)
Edit
Insert text under / after the cursor
Insert text at the beginning / end of the current line
Insert a line above / below and insert text
Insert text at the end of the word
Repeat the last action or edit
Join line below to the current one
Transpose two letters (performs forward delete/cut then paste)
Complete current partial word based on existing word list (cycle through next / previous entries)
Delete
Delete text in front / behind cursor
Delete current line (also cuts text to clipboard)
Delete to beginning / end of current word or start of next word
Delete to start / end of line
Apply modifier to delete command (eg. Delete three words)
Change
Change entire line (combines delete and insert)
Change a word to beginning / end or start of next work
Delete to start / end of line
Change from the cursor to the end of the line
Delete character / line at cursor and substitute text
Replace a single character (without triggering insert mode)
Replace multiple characters in replace mode
Search
Search forward / backwards for text
Next / previous search result
Next / previous word under cursor
Replace
Replace all instances of string old
with string new
in current file
Replace all instances with per item confirmation
Cut, Copy, Paste
Cut current line
Copy the current line
Copy to beginning / end of current word or start of next word
Copy to start / end of line
Paste buffer after / before cursor
Paste multiple instances of the copied text
Visual Mode
Visual selection mode by character / line (to apply commands to)
Exit visual selection mode
Move visual marker to opposite end of selection
Visual section with block select
Cut text visually marked
Copy text visually marked (yank)
Replace selected text
Undo / Redo
Undo edits and changes
Redo edits and changes
Revert last change to original state
Save / Quit
Save file
Quit vim (normal, without saving / no prompt)
Write and quit
Editing Multiple Files
Edit a file in a new view/buffer (Tab key to display filenames in current directory)
Go to next file (buffer next)
Go to previous file (buffer previous)
Remove file from editor view/buffer (buffer delete)
Open file in a new split view of the current window
Configuration
Enable / disable line numbers
Set editor to paste mode (to retain pasted formatting)
Set highlight search results or disable highligh
Split Windows
Split window horizontally
Split window vertically
Switch between windows
Quit active window
Last updated