* Marc Weber on Saturday, December 13, 2008 at 16:15:13 +0100
> Does vimscript prodive something like this?
> Right now I keep writing this instead:
>
> let loaded = config#GetG('tovl#plugins#loaded')
> for pkey in loaded
> let value = loaded[key]
> " ....
> endfor
>
> which is much more verbose than something like PHP can do
>
> for pkey : value in config#GetG('tovl#plugins#loaded')
> ....
> endfor
According to :help Dictionaries
for pkey in keys(config#GetG('tovl#plugins#loaded')
...
endfor
:help keys()
c
--
\black\trash movie _C O W B O Y_ _C A N O E_ _C O M A_
Ein deutscher Western/A German Western
-->> http://www.blacktrash.org/underdogma/ccc.html
-->> http://www.blacktrash.org/underdogma/ccc-en.html
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---