> 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?


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

Reply via email to