Vim/Neovim
Modal text editor commands for efficient editing. Navigation, search, replace, buffers, and configuration essentials.
72 commands
Browse by Topic
Getting Started
Quick setup and installation
Navigation
Movement commands
Editing
Edit operations
Search
Search and replace
Buffers
Buffer management
Visual Mode
Visual selection
Windows & Tabs
Split windows & tabs
Text Objects
Word, sentence & block objects
Macros
Recording & playback
Advanced Editing
Registers, marks & folds
Check Vim version
Display Vim version and compiled feature flags
Install Vim (macOS)
Install the latest version of Vim using Homebrew on macOS
Open a file in Vim
Open a file for editing in Vim (creates it if it does not exist)
Basic movement
Move left/down/up/right.
Go to start/end of file
Jump to first/last line.
Go to start/end of line
Jump to line start/end.
Next/previous word
Move by word.
Half page scroll
Scroll half page down/up.
Jump to matching bracket
Jump to matching bracket.
Go to line number
Jump to line 123.
Insert mode
Insert before/after cursor.
New line below/above
Insert new line below/above.
Delete line
Delete current line.
Yank (copy) line
Copy current line.
Paste
Paste after/before cursor.
Undo/redo
Undo/redo changes.
Change inner word
Change word under cursor.
Repeat last command
Repeat last change.
Search forward
Search forward for pattern.
Search backward
Search backward for pattern.
Next/previous match
Go to next/previous match.
Replace all
Replace all occurrences in file.
Replace with confirm
Replace with confirmation.
Clear search highlight
Remove search highlighting.
Open file
Open file in buffer.
Save file
Write buffer to file.
Quit
Quit / force quit.
Save and quit
Save and quit.
Next/previous buffer
Switch buffers.
List buffers
Show all open buffers.
Character visual mode
Select text character by character.
Line visual mode
Select entire lines at once.
Block visual mode
Select rectangular columns across lines.
Indent selection right
Shift selected lines right (visual mode).
Indent selection left
Shift selected lines left (visual mode).
Uppercase selection
Convert selection to uppercase (visual mode).
Lowercase selection
Convert selection to lowercase (visual mode).
Block insert at start
Insert text at start of each line (block mode).
Horizontal split
Split window horizontally.
Vertical split
Split window vertically.
Navigate left
Move to left window.
Navigate right
Move to right window.
Navigate down
Move to window below.
Navigate up
Move to window above.
Equalize splits
Make all windows equal size.
Close window
Close current split.
New tab
Open new tab page.
Next/previous tab
Switch between tabs.
Change inside quotes
Replace text inside double quotes.
Change inside parens
Replace text inside parentheses.
Change inside braces
Replace text inside curly braces.
Change inside brackets
Replace text inside square brackets.
Change inside tag
Replace text inside HTML/XML tag.
Delete around word
Delete word including surrounding space.
Delete around parens
Delete text and parentheses themselves.
Yank inside paragraph
Copy paragraph without surrounding blanks.
Record macro
Start recording keystrokes into register a.
Stop recording
Stop recording the current macro.
Play macro
Execute macro stored in register a.
Repeat last macro
Run the most recently played macro again.
Run macro N times
Execute macro a ten times.
View registers
Display contents of all registers.
Yank to register
Copy line to named register a.
Paste from clipboard
Paste from system clipboard.
Indent line
Shift current line right.
Unindent line
Shift current line left.
Auto-indent file
Reindent entire file.
Join lines
Merge current line with next.
Uppercase word
Convert word to uppercase.
Lowercase word
Convert word to lowercase.
Sort lines
Sort selected lines alphabetically.
Increment number
Increase number under cursor.
Discussion
Loading comments...