On 04/20/2011 06:15 PM, Marc Weber wrote:
let conditions = [['a=7','echo "7"'],['a=8','echo "8"']]

for [c,action] in conditions
   exec 'let c_result = '.action
   if c_result
     exec action

I think, to mimic the OP's structure, you need a "break" in here

   endif
   unlet c, c_result, action
endfor

-tim

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to