Lesson 13 · Power moves

Text objects

Inside and around

After an operator, i means inside and a means around. ciw changes the word under the cursor, wherever the cursor is in it.

Pairs

Text objects work on quotes and brackets: di" empties a string and ci( rewrites function arguments.

Challenge 1 of 50/10

Change from the middle

Change middle to center with ciw.

1The cursor is in the middle of a word
Normal1:24
Target
The cursor is in the center of a word
Your keystrokes show up here

Lost? Esc always gets you back to Normal mode. Every key from every lesson is in the sidebar.