On Mon, 23 Nov 2009 10:48:29 +0100
Jan-Herbert Damm wrote:

>> 1) bring the "country ___" line down to each non-country line:
>> 
>>    :v/^country /?country ?t-|s/country //|j
>> [...]
>>      ?country ?   look backwards to the most recent
>>                   line containing "country "  
>
>I think i don't understand this: why do you look *backward* for an
>occurence of "country" after you find a line that doesn't contain
>"country"?


country GB
London
Birmingham
country GER
Berlin
-->
GB London
GB Birmingham
...

When you are on a line without "country" you need to find the country
preceding it.


-- 

Best Regards,
Tarlika Elisabeth Schmitz

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

Reply via email to