I like to delete all characters embraced by "[" and "]" including these embracing characters. How can I do that?
Believe it or not, da[. Read :help text-objects to find out why, and what other kinds of regions you can use in this way (some other useful ones are aw for a word, and ap for a paragraph).
Perhaps use a find and replace like this:
:%s/\[.*\]//g
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With