Delivering text to vim.

2006-04-12 Thread John R. Culleton
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? Linux system and probably Tcl/Tk as

Re: Delivering text to vim.

2006-04-12 Thread Dr. Johannes Zellner
On Wed, Apr 12, 2006 at 09:42:54AM -0400, John R. Culleton wrote: > 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 h

RE: Delivering text to vim.

2006-04-12 Thread Suresh Govindachar
John R. Culleton Sent April 12, 2006 6:43 AM > 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

Re: Delivering text to vim.

2006-04-12 Thread Zbigniew Kowalski
also you can use: . ! on any empty line (if you don't like 'read') HTM zbikow Dnia 12-04-2006 o godz. 16:12 Dr. Johannes Zellner napisał(a): > On Wed, Apr 12, 2006 at 09:42:54AM -0400, John R. Culleton wrote: > > Assume I am in a Gvim session and I hit an F-key which in turn > > executes an exter

Re: Delivering text to vim.

2006-04-12 Thread Mikolaj Machowski
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

RE: Delivering text to vim.

2006-04-12 Thread Halim, Salman
Redir doesn't work for commands that don't post their output in the Vim window (such as system commands). If it is your intention to post the output of a system command into your buffer, you can instead do: :r!ls If it is simply to SEE the output, then system() is sufficient -- I'm fairly certai

Re: Delivering text to vim.

2006-04-13 Thread Mikolaj Machowski
Dnia środa, 12 kwietnia 2006 19:45, Halim, Salman napisał: > Redir doesn't work for commands that don't post their output in the Vim > window (such as system commands). If it is your intention to post the For me "ls" worked. > > output of a system command into your buffer, you can instead do: > :