It is possible to delete all lines matching a pattern using
Using the following command, you can replace words matching a pattern, 20 lines after where the cursor currently is:
How do you delete all lines matching a pattern, but N lines after where the cursor currently is ?
I've tried :
34,50/pattern/d however it delete backward, and inconsistently. Beside, it requires you to know exactly the lines between which to apply the deletion.