Skip to content
Vim
Learn/

Delete Around Brackets

28 / 51

Text Objects · Brackets

Delete Around Brackets

Remove a paired delimiter and everything inside it.

The around variant includes both delimiters. It is useful when the entire grouping should disappear rather than merely become empty.

Use da(, da[, and da{ in the editor beside this lesson. Practice is where you learn it, with the answer a click away; the Test is graded, unaided, and the only thing that marks this lesson complete.

Keys in this lesson

da(
Delete the parentheses and everything inside them
da[
Delete the square brackets and everything inside them
da{
Delete the braces and everything inside them
All 91 keys →

Practice to learn it. Test to prove it.

Practice keeps the answer a click away — endlessly in Free, or as a 15-goal run against par and your own best time in Timed. The Test gives you 8 goals with no hints and a keystroke budget on each; passing it is what marks this lesson complete.

da(

Delete the parentheses and their contents with da(.