Screen Too Small

This course material requires a larger screen to properly display the terminal and editor interfaces.

Please use a tablet, laptop, or desktop computer for the best learning experience.

You can continue browsing, but the experience will be significantly limited.

Practice Beginner 10 min

Visual Line Mode Mastery

Visual Mode: The Art of Selection

Task Instructions

Master line-wise selections for working with entire lines and blocks of code

Use Visual Line mode (V) to select entire lines and apply operations. This is perfect for moving functions, deleting blocks of code, or indenting sections. Press V to start line-wise selection, then use j/k to extend the selection.

Learning objectives

  • Master visual line mode (V)
  • Learn to select multiple lines efficiently
  • Practice moving and reorganizing code blocks
  • Understand when to use line-wise vs character-wise visual mode

Required keystrokes

Your submission is checked for these keystrokes, not just the final text — so reach for the technique, not a workaround.

  • V Use visual line mode
  • d Delete selected lines

Helpful commands

V
Start visual line mode
j/k
Extend selection down/up
d
Delete selected lines
>
Indent selected lines
<
Outdent selected lines
:
Execute command on selected lines
Stuck? Peek at a hint 3 hints · try it on your own first
  • Visual Line mode always selects complete lines
  • Use V to quickly select and move functions or blocks
  • Combine with counts: V4j selects 5 lines total

Premium Course

This is a premium course available exclusively to paid members.

Upgrade your membership to access this course and all premium content on the platform.

Upgrade to Premium

Access all premium courses

Unlimited lesson submissions

Track your progress

visual-line-mode-mastery.txt

1" Read the task on the left.

2" A live Vim editor opens right here.

3" Finish the edits, then submit.

~

~

NORMAL 1,1   All

Ready to practice?

Take your time with the task — start whenever you're set.

Start Lesson