Vim 9 cheatsheet

Vim 9: Visual mode

6 common Vim 9 tasks.

Select characters

Start selecting by character. Move to extend the selection.

v

Select whole lines

Start selecting whole lines.

V

Select a block

Start a rectangular selection.

Ctrl-v

Select a paragraph

Select the paragraph around the cursor.

vip

Insert text on several lines

Select a block down several lines, press I, type, then Esc to apply it to every line.

Ctrl-v  j j j  I  text  Esc

Reselect the last selection

Select the same text again.

gv

Was this page helpful?