Assuming you have a pattern that exactly matches what you want to “cut out,” just search for that pattern with a normal search /. Then you can use the facility gnto search for the removal action for the subsequent insertion of, for example dgn.
If you do not have this pattern, but you have a start and end regex, just place the cursor at the end of the "start" pattern (for example, using /pattern/e), and then delete until the search, for example d/pattern2.
source
share