I know how to remove part of the text from the cursor position before the template appears, I mean d /<pattern> . I am wondering how to remove part of the text before the cursor position before the appearance of the template that is in front of the cursor position.
Be at position x in the file:
>>>> aaaa ===x bbbb <<<<
I want to delete
>>>> aaaa ====
This works if the template exists only once in the file ... and vim has no choice. However, there is a problem with a file like this:
>>>> aaaa ==== bbbb <<<< foo boo >>>> cccc ==== dddd <<<<
noisy source share