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

Quote Objects: Strings Made Easy

Text Objects: Speaking Vim's Language

Task Instructions

Master quote text objects for efficient string manipulation

Use quote text objects to manipulate strings. Position cursor anywhere inside quotes and use ci" to change contents, or ca" to change including the quotes themselves.

Learning objectives

  • Master quote text objects: i", a", i', a', i`, a`
  • Learn to change string contents efficiently
  • Practice deleting and changing quoted text
  • Understand when to use inside vs around

Required keystrokes

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

  • ci["'] Change inside quotes
  • [cd][ia]["'] Use quote text objects

Helpful commands

ci"
Change inside double quotes
ca"
Change around double quotes
ci'
Change inside single quotes
ci`
Change inside backticks
di"
Delete inside quotes
Stuck? Peek at a hint 3 hints · try it on your own first
  • Works from anywhere inside the quotes
  • Use 'i' to keep quotes, 'a' to include them
  • Also works with backticks in many Vim configurations

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

quote-objects-strings-made-easy.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