Course
Practice
Beginner
10 min
Brackets, Braces & Parentheses
Text Objects: Speaking Vim's Language
Task Instructions
Master delimiter text objects for code manipulation
Use delimiter text objects to edit code structures. Position cursor inside parentheses and use ci( to change contents, or use ci{ for braces, ci[ for brackets.
Learning objectives
- Master delimiter text objects: i(, a(, i[, a[, i{, a{
- Learn to edit function arguments and array elements
- Practice changing code blocks and data structures
- Understand nested delimiter handling
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 delimiters
- [cd][ia][\(\[\{] Use delimiter objects
Helpful commands
- ci(
- Change inside parentheses
- ci[
- Change inside brackets
- ci{
- Change inside braces
- ca(
- Change around parentheses
- di{
- Delete inside braces
Stuck? Peek at a hint 3 hints · try it on your own first
- Works with (), [], {}, and even <> for HTML tags
- Vim is smart about nested delimiters
- Use 'a' variants to include the delimiters
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
" Read the task on the left.
" A live Vim editor opens right here.
" Finish the edits, then submit.
~
~
NORMAL