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.

14/24

Visual Mode Best Practices

Estimated time: 10 minutes

Task Instructions

Master efficient visual mode workflows and common patterns

Practice common visual mode patterns and learn when visual mode is the best tool versus using normal mode operations. This lesson focuses on practical patterns used by Vim professionals.

Learning objectives

  • Master efficient visual mode workflows
  • Learn when to use visual mode vs normal mode operations
  • Practice common visual mode patterns
  • Understand visual mode best practices

Required Keystrokes

This lesson requires you to use specific keystrokes to complete it. Your submission will be evaluated based on whether you used the required keystrokes mentioned below, rather than matching a specific output.

[vV]
Use visual mode
gv
Re-select last selection

What This Means

  • Your solution must include the required keystroke patterns
  • The order of keystrokes may matter depending on the exercise
  • You'll still need to achieve the expected output
  • This helps you practice specific Vim techniques

Helpful commands:

Command Description
V Visual line mode
v Visual character mode
Ctrl+v Visual block mode
gv Re-select last visual selection
> Indent selected text
o Switch cursor to other end of selection

Hints

  • Visual mode is great for complex selections, but normal mode operations can be faster for simple edits
  • Use gv to re-select your last visual selection
  • Combine visual mode with operators like d, c, >, <, gU, gu

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

Ready for Vim?

Before starting this lesson, be prepared.

Read the directions on the left, and when you're ready, let's go!