public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
* fwd: vim
@  Chris Nestrud
   ` Rodney Clowdus
  0 siblings, 1 reply; 5+ messages in thread
From: Chris Nestrud @  UTC (permalink / raw)
  To: speakup

While we're on the subject of editors.. I've recently started using vim
instead of nano, and I'm very pleased with it. I'm trying to find a way
to be able to enter a shell command and have its output inserted into
the current file. Anyone have any ideas?

Chris



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: fwd: vim
   fwd: vim Chris Nestrud
@  ` Rodney Clowdus
     ` Steve Holmes
  0 siblings, 1 reply; 5+ messages in thread
From: Rodney Clowdus @  UTC (permalink / raw)
  To: speakup

Let's say we have a file named time and we want to append the output of the 
command date to the file.  Quit vi in you are in it and type date >> time and 
the output of date will be appended to the file named time.   If you want to 
overwrite the file type only one > but to append type two >>.  I find it 
works pretty good for me.  My two cents worth.
Rodney
On Monday 20 August 2001 09:43 pm, you wrote:
> While we're on the subject of editors.. I've recently started using vim
> instead of nano, and I'm very pleased with it. I'm trying to find a way
> to be able to enter a shell command and have its output inserted into
> the current file. Anyone have any ideas?
>
> Chris
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup

-- 
The Weaving Beaver
rclowdus@kcnet.com
"Chop your own firewood and it will warm you twice."
"Weave your own cloth and it will reward you twice"



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: fwd: vim
   ` Rodney Clowdus
@    ` Steve Holmes
       ` Chris Nestrud
       ` Rodney Clowdus
  0 siblings, 2 replies; 5+ messages in thread
From: Steve Holmes @  UTC (permalink / raw)
  To: speakup

Yea but what if he wants to insert the shell output into the middle of an
existing file?

Here is what I just tried in vim.
Type the following command sequence to insert the current date/time into
your file:
:r !dt
:r reads in a supposed file but !command is substituted for that file name
and the output of the command will come into the file.  Quite clever, I
shalle say.:)

On Mon, 20 Aug 2001, Rodney Clowdus wrote:

> Let's say we have a file named time and we want to append the output of the
> command date to the file.  Quit vi in you are in it and type date >> time and
> the output of date will be appended to the file named time.   If you want to
> overwrite the file type only one > but to append type two >>.  I find it
> works pretty good for me.  My two cents worth.
> Rodney
> On Monday 20 August 2001 09:43 pm, you wrote:
> > While we're on the subject of editors.. I've recently started using vim
> > instead of nano, and I'm very pleased with it. I'm trying to find a way
> > to be able to enter a shell command and have its output inserted into
> > the current file. Anyone have any ideas?
> >
> > Chris
> >
> >
> > _______________________________________________
> > Speakup mailing list
> > Speakup@braille.uwo.ca
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: fwd: vim
     ` Steve Holmes
@      ` Chris Nestrud
       ` Rodney Clowdus
  1 sibling, 0 replies; 5+ messages in thread
From: Chris Nestrud @  UTC (permalink / raw)
  To: speakup

That's exactly what I was looking for. Many thanks.

Chris


On Tue, Aug 21, 2001 at 07:56:14AM -0700, Steve Holmes wrote:
> Yea but what if he wants to insert the shell output into the middle of an
> existing file?
> 
> Here is what I just tried in vim.
> Type the following command sequence to insert the current date/time into
> your file:
> :r !dt
> :r reads in a supposed file but !command is substituted for that file name
> and the output of the command will come into the file.  Quite clever, I
> shalle say.:)
> 
> On Mon, 20 Aug 2001, Rodney Clowdus wrote:
> 
> > Let's say we have a file named time and we want to append the output of the
> > command date to the file.  Quit vi in you are in it and type date >> time and
> > the output of date will be appended to the file named time.   If you want to
> > overwrite the file type only one > but to append type two >>.  I find it
> > works pretty good for me.  My two cents worth.
> > Rodney
> > On Monday 20 August 2001 09:43 pm, you wrote:
> > > While we're on the subject of editors.. I've recently started using vim
> > > instead of nano, and I'm very pleased with it. I'm trying to find a way
> > > to be able to enter a shell command and have its output inserted into
> > > the current file. Anyone have any ideas?
> > >
> > > Chris
> > >
> > >
> > > _______________________________________________
> > > Speakup mailing list
> > > Speakup@braille.uwo.ca
> > > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> >
> >
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup

-- 
------------------------------
Chris Nestrud
E-mail: ccn@uark.edu



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: fwd: vim
     ` Steve Holmes
       ` Chris Nestrud
@      ` Rodney Clowdus
  1 sibling, 0 replies; 5+ messages in thread
From: Rodney Clowdus @  UTC (permalink / raw)
  To: speakup

Thanks that works better than the way I use to do it!  Pretty cleaver!  Now I 
have the best of both worlds whether I'm in the file or whether I'm out of 
the file, very cool and very simple!
Rodney
On Tuesday 21 August 2001 09:56 am, you wrote:
> Yea but what if he wants to insert the shell output into the middle of an
> existing file?
>
> Here is what I just tried in vim.
> Type the following command sequence to insert the current date/time into
>
> your file:
> :r !dt
> :r reads in a supposed file but !command is substituted for that file name
>
> and the output of the command will come into the file.  Quite clever, I
> shalle say.:)
>
> On Mon, 20 Aug 2001, Rodney Clowdus wrote:
> > Let's say we have a file named time and we want to append the output of
> > the command date to the file.  Quit vi in you are in it and type date >>
> > time and the output of date will be appended to the file named time.   If
> > you want to overwrite the file type only one > but to append type two >>.
> >  I find it works pretty good for me.  My two cents worth.
> > Rodney
> >
> > On Monday 20 August 2001 09:43 pm, you wrote:
> > > While we're on the subject of editors.. I've recently started using vim
> > > instead of nano, and I'm very pleased with it. I'm trying to find a way
> > > to be able to enter a shell command and have its output inserted into
> > > the current file. Anyone have any ideas?
> > >
> > > Chris
> > >
> > >
> > > _______________________________________________
> > > Speakup mailing list
> > > Speakup@braille.uwo.ca
> > > http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup

-- 
The Weaving Beaver
rclowdus@kcnet.com
"Chop your own firewood and it will warm you twice."
"Weave your own cloth and it will reward you twice"


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 fwd: vim Chris Nestrud
 ` Rodney Clowdus
   ` Steve Holmes
     ` Chris Nestrud
     ` Rodney Clowdus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).