global normal command with yanking

2006-07-24 Thread J.Hofmann
Hi,

I want to assemble a line below a block of text, where the fist word of
every
line is concatenated.

one bla
two bla 
three bla 
four bla 
empty line

So I tried this, which should for every line yank the first word,
Go to the last (empty) line, pastes and appends a little text after.

:1,$-g/^/normal yeGPa + 

The result is:

four + three + two + one + 

The order is not how I expected it.
Why is that, and can I reverse the order?


Thank You

Joachim
###

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/


Re: global normal command with yanking

2006-07-24 Thread Yakov Lerner

On 7/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

I want to assemble a line below a block of text, where the fist word of
every
line is concatenated.

one bla
two bla
three bla
four bla
empty line

So I tried this, which should for every line yank the first word,
Go to the last (empty) line, pastes and appends a little text after.

:1,$-g/^/normal yeGPa +

The result is:

four + three + two + one +

The order is not how I expected it.


:1,$-g/^/normal yeG$pa +

Yakov