On Thu 19-Oct-06 9:26am -0600, Charles E Campbell Jr wrote:

> So, to do what you ask with LogiPat's result:
>
> :g/^\%(\%(}}$\)[EMAIL PROTECTED])*$/j

Please see my response to Tony Mechelynck.  Your solution
changes the text of Peng Yu's example to 5 lines.  As I
understand his goal, the correct answer has 2 lines.

It is not a problem with your very clever LogiPat, it is the
application within :global.

Here's what I believe is happening during the original first
4 lines:

First you join the first two lines.  Then, since the
original line 2 is no longer present, nothing is done with
line 2.  Next it joins lines 3 and 4.

That's 2 lines so far.  Actually, lines 1 through 4 should
be joined to 1 line.

-- 
Best regards,
Bill

Reply via email to