On 7/19/06, Noah Spurrier <[EMAIL PROTECTED]> wrote:
I used this pattern to select sections of test that belong to me
when CVS or SVN generates a merge conflict. This pattern works fine:
    /^<<<<<<<\_.\{-}=======.*$/
I have search highlighting turned on and I can see the multiline
patterns get highlighted as expected.

Then I tried to delete all of those highlighted areas by using
the global command:
    :g//d
This didn't work. It would delete the FIRST line of the pattern match, but
leave all the other lines.

Right, this is how it's supopsed to work.
I suggest the following (untested):
    :g/^<<<<<<<\_.\{-}=======.*$/.,/=======.*$/d
To test it safely, you can try first:
    :g/^<<<<<<<\_.\{-}=======.*$/.,/=======.*$/p

Maybe you don't even need such complex 1st pattern.
Maybe the simpler thing will work, too:
    :g/^<<<<<<</.,/=======.*$/d
To test it safely, you can try first:
    :g/^<<<<<<</.,/=======.*$/p

Yakov

Reply via email to