Skip to content
Vim Learn
Learn/

Visual Line Operators

51 / 51

Visual Mode

Visual Line Operators

Delete, change, or yank complete selected lines.

Linewise visual ranges interact with the same operators and unnamed register as command-composed edits.

Use V, d, c, y, and p in the editor beside this lesson. The challenge proves it once; Practice is a timed run against the clock.

Keys in this lesson

V
Enter Visual Line mode to select whole lines
d
Delete the selected lines
c
Change the selected lines
y
Yank the selected lines
p
Replace the selected lines with what was yanked
All 91 keys →

Practice against the clock.

The challenge proves completion once. Practice is a timed run of 15 goals — beat par, then beat your own best time. Every completed goal saves locally.

Vjyp

Yank two lines and paste them below.