Wednesday, April 22, 2015

Build amenu from Funcref

Hi all,

I got some scriptPsexec#function('ddddd') to refer to but I don't happen to call it :
1- directly
2- mapped into amenu command


let m = psexec#machine()
call m.configure(machine,cce,level)
for foo in m.getCmdList()
let Fn = copy(m[foo])
"1- exe funcref#Call( Fn )
"2-exe 'anoremenu '.m.getMenuPath().'.'.foo.' :funcref#Call("'.string(Fn).'")<CR>'
endfor


The funcref#Call echoes me an error:
E492: unknown command: call funcref#Call("function('3210')")

Can you help me to call correctly the funcref please ?
Thank you


--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: