Vim - delete until (inclusive) character in multiple lines
Try with this: d%
.
The d
is for delete and the %
moves between braces.
This should work:
d}
This deletes one paragraph forward.
d/}/e
does the job.
d/}
deletes until the }
but adding the /e
flag moves the cursor on the last char of the match, effectively deleting everything between the cursor and the }
, inclusive.
Using visual selection works too, in a slightly more intuitive way:
v/}<CR>d