On 2009-07-05 20:29 (+0200), Jeri Raye wrote: > On Thu, Jun 4, 2009 at 9:05 PM, Teemu Likonen<[email protected]> wrote: >> :g/^AAAA/s/^.*$/\=split(submatch(0))[-1].' >> '.join(split(submatch(0))[0:-2],' ')
> How do you change the above solution when you want > AAAA BB CCCCCC > > to be changed into > > AAAA CCCCCC BB Tim Chase gave a good answer, and it's quite different from the command that is quoted above. The above solution rotates arbitrary number of words to left, and it's not very useful for this new problem. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
