On 10 Nov., 13:30, Tom Link <[email protected]> wrote:
> > what's wrong with a dull looking for-loop:
>
> Okay, that was the original solution anyway. I'd say stick to it.

Sorry for the reply to self. If you really want to use map, you could
use:

exec 'let dict = {'. join(map(split(lines, "\n"), 'string(v:val) .":
1"'), ",") .'}'

You have to make sure the lines are unique.

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

Reply via email to