On Thu, 19 Nov 2009 18:36:03 +0900, Andy Wokula <[email protected]> wrote: > " callee.vim: > com! -nargs=* -complete=command FrameworkLocal <args> > > function s:cript_local_function(...) > return string(a:000) > endfunction > > let s:mile = 'XD' > > -------------------------- > " caller.vim: > FrameworkLocal echo s:cript_local_function(['Vim', 'is', 'forever']) > " ==> ['Vim', 'is', 'forever'] > FrameworkLocal echo s:mile > " ==> 'XD'
It's not possible to interact with caller's script-local variables easily . For example: caller.vim: let s:callers_variable = '...' FrameworkLocal let s:callee_variable = s:caller_variable " ??? And user-defined Ex commands (= :FrameworkLocal) are usually for interactive use, not for scripts. Defining Ex commands may be annoying for users whenever they try to complete the names of Ex commands in Command-line mode. -- To Vim, or not to Vim. http://whileimautomaton.net/ --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
