Vim Visual Mode

Selecting and manipulating text

Enter Visual Mode

v # character-wise visual mode
V # line-wise visual mode
Ctrl + v # block-wise visual mode

Visual Selection

o # move to other end of selection
aw # select a word
ab # select a block with ()
aB # select a block with {}
ib # select inner block with ()

Visual Operations

y # yank selected text
d # delete selected text
c # change selected text
> # indent right
< # indent left
~ # swap case
u # convert to lowercase
U # convert to uppercase

Select All

ggVG # select all text in file