Skip to content
Vim Learn
Learn/

Change Inside Brackets

29 / 51

Text Objects · Brackets

Change Inside Brackets

Replace bracket contents without retyping delimiters.

ci preserves the surrounding syntax, removes the inner range, and enters Insert mode at the opening boundary.

Use ci(, ci[, and ci{ in the editor beside this lesson. The challenge proves it once; Practice is a timed run against the clock.

Keys in this lesson

ci(
Change inside the parentheses, keeping the pair
ci[
Change inside the square brackets, keeping the pair
ci{
Change inside the braces, keeping the pair
All 91 keys →

Practice against the clock.

The challenge proves completion once. Practice is a timed run of 15 goals — beat par, then beat your own best time. Every completed goal saves locally.

ci{readyEsc

Change the contents of the braces to “ready”.