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.

13/24

Visual Mode with Different Operators

Estimated time: 10 minutes

Task Instructions

Learn to combine visual selections with various operators like d, y, c, >

Practice combining visual selections with different operators like gu (lowercase), gU (uppercase), > (indent), and others to transform selected text efficiently.

Learning objectives

  • Learn to combine visual selections with various operators
  • Master using d, y, c, >, gu, gU with visual mode
  • Understand how operators work with different visual modes
  • Practice efficient text transformation workflows

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.

v
Use visual character mode
V
Use visual line mode
gu
Make selection lowercase
>
Indent 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{motion}{operator} Apply operator to selection
gu Make lowercase
gU Make uppercase
> Indent right
< Indent left

Hints

  • After selecting text with v/V/Ctrl-v, you can apply operators: d (delete), y (yank), c (change), gu (lowercase), gU (uppercase), > (indent)

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!