I have a repetitive configuration file and I'd like to match a regex and delete a range of lines before, and after a match. I'd also like delete the match in one command.
I can use...
:g/match/-1d
...several times to delete more than one line from before a match...
...and combine it with a few calls to...
:g/match/+1d
...to delete more than one line after the match...
But is there any way to delete a range of lines, before, after and including, the match with one command?