Text Objects · Brackets
Introduction to Text Objects
Address semantic regions from anywhere inside them.
Text objects replace the motion in operator grammar. i selects inner contents; a includes the surrounding delimiter or adjacent spacing.
Use i, and a in the editor beside this lesson. The challenge proves it once; Practice is a timed run against the clock.
Keys in this lesson
- i
- Inner: the contents, without the surrounding delimiters
- a
- Around: the contents plus the surrounding delimiters
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.