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.

Free Trial: 5 lessons remaining
Unlock Full Access
Practice Beginner 10 min

Word Objects: iw, aw, iW, aW

Text Objects: Speaking Vim's Language

Task Instructions

Master word and WORD text objects for efficient word manipulation

Practice using word text objects. 'iw' selects the inner word (just the word), 'aw' includes trailing spaces. Capital W versions work with WORDS (including punctuation). Position your cursor anywhere in a word and use ciw to change it.

Learning objectives

  • Master inner word (iw) and around word (aw) objects
  • Understand the difference between word and WORD
  • Practice efficient word deletion and changing
  • Learn when to use each variation

Required keystrokes

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

  • ciw Change inner word
  • [cd]i[wW] Use word text objects

Helpful commands

ciw
Change inner word
caw
Change around word (includes spaces)
ciW
Change inner WORD (includes punctuation)
diw
Delete inner word
viw
Select inner word
Stuck? Peek at a hint 3 hints · try it on your own first
  • iw works from anywhere within the word
  • aw includes trailing whitespace, useful for removing words
  • W (capital) treats special characters as part of the word
vim@sandbox: ~/workspace
Save your file with :w ⏎ to unlock Submit