Visual Selection in Vim

From the Vim cheat sheet · Visual Mode · verified Jul 2026

Visual Selection

Commands for visual mode selection and manipulation

text
v - Start visual mode (character)
V - Start visual line mode
Ctrl+v - Start visual block mode

# In Visual Mode:
o - Move to opposite end of selection
O - Move to opposite corner (block mode)
aw - Select a word
ab - Select a block with ()
aB - Select a block with {}
ib - Select inner block with ()
iB - Select inner block with {}
ap - Select a paragraph
> - Indent selection
< - Unindent selection
= - Auto-indent selection
~ - Toggle case
u - Make lowercase
U - Make uppercase
d - Delete selection
c - Change selection
y - Yank selection
: - Enter command for selection
💡 Visual block mode (Ctrl+v) for column editing
⚡ Use V for line selection, v for precise selection
📌 o jumps to other end of selection for adjustments
🟢 Press Esc to exit visual mode
visualselection
Back to the full Vim cheat sheet