A. Politz wrote:

> ---buffer---
> abcdefg
> 1234567
> ------------
> 
> +
> 
> :1s/g\n\zs1//
> 
> =
> 
> ---buffer---
> 234567
> ------------
> 
> 
> Is it supposed to be this way ? I don't think so.
> Or maybe someone will enlighten me.

Yes, that looks like a bug.  Try  :s/defg\n1\zs2//  and only the "a" is
kept.  One more for the todo list...

-- 
       When danger reared its ugly head,
       He bravely turned his tail and fled
       Yes, Brave Sir Robin turned about
       And gallantly he chickened out
       Bravely taking to his feet
       He beat a very brave retreat
       Bravest of the brave Sir Robin
       Petrified of being dead
       Soiled his pants then brave Sir Robin
       Turned away and fled.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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

Raspunde prin e-mail lui