> > Yeah, I saw your other post after posting this answer. Well, Vim (and > the vim-script language) defines the following kinds of objects: > ----skip--- thanks for that listing :) > - Ex-commands > - an Ex-command may trigger an error > - an Ex-command may optionally display something on the command-line > - an Ex-command does not return a value.
well - that's it - it cannot return value directly. > In the case of the existing interpreted languages (perl, python, ruby, > Tcl and Mzscheme): > - Vim can > - invoke the interpreter for inline scripts > - invoke the interpreter for individual commands > - invoke the interpreter for every line in a range > - since the interpreter has access to Vim variables, the above can > change variables and thus return a result > - The interpreter can access most Vim variables, functions, commands > and data structures via extensions to the interpreter syntax. yes - I thought about this already, because there is no way to return value. Are there some _documented_ interface to create new variable, and set it to some value? The only thing which comes to mind -- build string and let it be evaluated, but this is quite ugly way. Especially if I will pass lists and dictionaries too. > > You may want to run Exuberant ctags in the src/ directory containing the ----skip-- > :view eval.c > > etc. > Well, I'm not _that_ clueless :) I've done a lot of RTFS already, but still have questions. -- Gaspar Chilingarov System Administrator, Network security consulting t +37493 419763 (mob) i 63174784 e [EMAIL PROTECTED]