I have files that look like the following:
>>Start-pattern
some text
some more text
>>Start-pattern
some other text
some more other text
>>Start-pattern
[and so on]
What I would like to have is a mapping that allows me to delete the current "block" of text. Where "block" is defined as all lines ranging from ">>Start-pattern" until before the next ">>Start-pattern" line.
What I have is the following:
nnoremap ,d $:?^>>Start-pattern?,/^>>Start-pattern/-1delete<CR>
that works unless I'm standing on the last "block" in a file.
How can I get this map (or a completely different one that does the same thing) to work on all "blocks" in the file?