Sorry,
by the time I found the answare for myself...
for v in vers
let command = 'menu ]environments.' .
substitute(strpart(v,3), '\', '.', "g") . ' :let $sack="' .
substitute(strpart(v,3), '\', ' ', "g") . '"<CR>'
exec command
endfor
I hope it will help to someone too...
Br,
Peter.
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of ext Marczis, Peter (NSN - HU/Budapest)
Sent: Wednesday, November 25, 2009 12:29 PM
To: [email protected]
Subject: Create menu with for ?
Hi,
what should be the good syntax in this case ?
for item in sacks
menu ]environments.{item} echo "coool"
endfor
sacks is a list. and I would like to create a menu from this list...
but, how can I use the item variable to create the menu ?
thanks for all your trouble !
Br,
Peter.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---