Vim: visual block mode commands

Selecting Text (Visual Mode)

To select text, enter visual mode with one of the commands below, and use arrow keys to highlight the text you are interested in. Then, use some command on the text.

The operators that can be used are:
  ~  switch case
  d  delete
  c  change
  y  yank
  >  shift right
  <  shift left
  !  filter through external command
  =  filter through 'equalprg' option command
  gq  format lines to 'textwidth' length

Any time following are the basic commands to remember.

v start Visual mode per character.
V start Visual mode linewise.
<Esc> exit Visual mode without making any changes

Leave a Reply

Your email address will not be published. Required fields are marked *