Delete Inside Brackets

Delete text inside brackets with di(, di[, di{

Open companion guide

Goals

0/3
  • Delete inside parentheses with di(
  • Delete inside square brackets with di[
  • Delete inside curly braces with di{
Keys 0 · par 10

Instructions

  1. 1.Place cursor inside the parentheses
  2. 2.Use di( to delete the contents inside
Quick KeysNORMAL
h j k lMove cursor
w b eWord movement
i a oEnter insert
dDelete
yYank (copy)
pPaste
uUndo
vVisual mode
:Command mode
/Search

Community pulse

Weekly top score
Leaderboard warming up...
Daily challenge
Loading challenge...
Vim mode: normal

Practice buffer · reset restarts the lesson (not vim u)

Lesson Companion

Use Delete Inside Brackets in real editing

This companion guide helps you complete Delete Inside Brackets with fewer mistakes and better command fluency.

Quick Command Cheatsheet
  • di(
  • brackets
When to Use This Motion/Operator

Use this lesson whenever you need to target semantic units like words, quotes, or brackets with fewer keystrokes.

  • Prefer this over arrow-key micro-movements before each edit.
  • Use this pattern whenever you're working inside Text Objects tasks.
  • Reach for di(, brackets when this pattern appears.
Common Mistakes
  • Manually selecting text with Visual mode instead of using inner/around text objects.
  • Confusing the inner (i) and around (a) text object variants.
FAQ

How long should this lesson take?

Target completion is 30 seconds, but correctness matters more than speed at first.

Should I move to the next lesson if my score is low?

Advanced patterns take longer to feel natural, so a lower score on the first pass is normal — prioritize accuracy over speed here.