On 11月8日, 下午5时56分, StarWing <[EMAIL PROTECTED]> wrote:
> e.g. if i have some functions named my_func_.... like my_func_a,
> my_func_b, my_func_here. and i type this command:
> :function /^my_func_.*$/
> it will list all my functions, but, if i'm in a script, how can i get
> this command's output? can i re-direct the output? (it's not message,
> so i can't use :redir) or any other ideas about get this informations
>
> btw, how can i get a global-variables list in vim?

resolved it, just redir END for get the value of redir message......

but, how can i get the variables match the special regexp?
i have got a idea:
:redir => var_list | silent let | redir END
:for var in split(var_list, "\<NL>")
:ec matchstr(var, '^Tlist_[^ ]*')
:endfor

have any other way? i think it's a waste of memory............
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to