Dnia środa, 12 kwietnia 2006 15:42, John R. Culleton napisał:
> Assume I am in a Gvim session and I hit an F-key which in turn
> executes an external program. The external program directs text
> to sysout. Can I make this appear in the Gvim text? Or do I need
> to direct it to a temp file and have a
>
> :read
>
> function in the script?

For Vim6.x use :redir ::

    :redir @a
    :silent !ls
    :redir END

For Vim7 also system() ::

    :let a = system('ls')

m.
-- 
        E478: Don't panic!

Reply via email to