Course
Practice
Beginner
10 min
Text Objects with All Operators
Text Objects: Speaking Vim's Language
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
Your submission is checked for these keystrokes, not just the final text — so reach for the technique, not a workaround.
- g[Uu] Use case change operators
- [cdvy]i Combine operators with text objects
Helpful commands
- gUiw
- Uppercase inner word
- gui'
- Lowercase inside quotes
- dap
- Delete around paragraph
- yi(
- Yank inside parentheses
- vi{
- Select inside braces
- =ip
- Auto-indent paragraph
Stuck? Peek at a hint 3 hints · try it on your own first
- 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
" Read the task on the left.
" A live Vim editor opens right here.
" Finish the edits, then submit.
~
~
NORMAL