On Tue, Nov 10, 2009 at 8:06 AM, Marc Chantreux <[email protected]> wrote:
>
> hello all
>
> many thanks for you tries and replies. all of them where very
> instructive.
>
> i'll stick on the for-loop solution as it seems that functionnal
> solutions are harder to read/debug in viml.

Since you seem to want a one liner, here is one:

let t=eval('{'.join(map(split(system("echo foo; echo bar"), "\n" ),
'"''".v:val."'': 1"'), ',').'}')

-- 
Hari
>
> regards
> marc
>
> >
>

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

Reply via email to