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.

20/24

Text Objects with All Operators

Estimated time: 10 minutes

Task Instructions

Combine text objects with different operators for maximum power

Practice combining text objects with various operators. Use not just 'd' and 'c', but also 'y' for yanking, 'v' for visual selection, 'gU' for uppercase, 'gu' for lowercase.

Learning objectives

  • Combine text objects with multiple operators
  • Practice d, c, y, v with text objects
  • Learn case changes with gU and gu
  • Master the text object mindset

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.

g[Uu]
Use case change operators
[cdvy]i
Combine operators with text objects

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
gUiw Uppercase inner word
gui' Lowercase inside quotes
dap Delete around paragraph
yi( Yank inside parentheses
vi{ Select inside braces
=ip Auto-indent paragraph

Hints

  • Text objects work with ANY operator
  • gU = uppercase, gu = lowercase
  • = operator auto-indents text objects

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!