I have a plugin which wants to use :redir from a command registered to run
at VimEnter time.  It looks about like this currently:

    # FIXME: this clobbers any existing redirection that may be in place.
    VIM::DoCommand("redir >>$tfname");
    &$retrieval_commands();
    VIM::DoCommand("redir END");   # Presumably this flushes things as well.

where $tfname is a temporary file.  Unfortunately when this is done any
redirection the user might have in place is lost.

Is there some way to do this sort of thing and then restore whatever
redirection the user might have in place, or some equivalent way to capture
vim command output without resorting to :redir?

Thanks,
Britton

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui