John Little wrote:
> 
>> However, I'm not sure why the following failed:
>>
>>    :%s/foo\n\zs\%(\s*\n\)*/
>>
>> based on all my regexp wonkiness, this looks like it _should_
>> work.  Anybody able to shed light on why it fails to do what I
>> expect (it deletes all but one of the "foo"s)?
> 
> Trailing space on that foo?

I checked for that...and if that was the case, I expect it would 
delete too _little_, not too much.

With a little more experimentation, it seems to be a vim bug that 
was fixed along the line somewhere.  I see it fail on my work 
WinXP machine's Vim 7.0 (and on my home Mac iBook's ancient v6.2) 
but it works correctly on my home Debian Vim 7.1 (p1-314)

So I guess the upshot is:  Tim's laziness in failing to upgrade 
bites him in the bum.  (and "Debian's full-system updates do a 
far better job of keeping all apps up-to-date than Mac/Windows")

Sorry for the noise.

-tim




--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to