To select text, enter visual mode with one of the commands below, and use motion commands to highlight the text you are interested in.
Then, use some command on the text.
The operators that can be used are:
~switch caseddeletecchangeyyank>shift right<shift left!filter through an external command=filter through ‘equalprg’ option commandgqformat lines to ‘textwidth’ length
v | Start Visual mode per character |
V | Start Visual mode linewise (horizontal selection) |
CTRL-V | Start Visual mode columnwise (vertical selection) |
<Esc> | Exit Visual mode without making any changes |
viw | Visually select inner word (where the cursor is positioned) |