On 2009-06-04 20:11 (+0200), Jeri Raye wrote:

> AAAA    BB    CCCCCC
>
> Must be come
>
> CCCCCC  AAAA  BB

Interesting challenge. Here's my completely untested suggestion:

:g/^AAAA/s/^.*$/\=split(submatch(0))[-1].'  '.join(split(submatch(0))[0:-2],'  
')


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

Reply via email to