use redir in functions, e.g.
func! Func1()
redir => funclist
silent func
redir END
" .... other sentence ...
endfunc
funclist maybe a local-variable, but it is globle variable here, must
write
redir => l:funclist
to make funclist a local variable.
the doc only said:
:redi[r] => {var} Redirect messages to a variable. If the variable
doesn't exist, then it is created. If the variable
exists, then it is initialized to an empty string.
The variable will remain empty until redirection ends.
Only string variables can be used. After the
redirection starts, if the variable is removed or
locked or the variable type is changed, then further
command output messages will cause errors. {not in Vi}
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---