From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from server3.safepages.com ([216.127.146.5]) by speech.braille.uwo.ca with esmtp (Exim 3.31 #1 (Debian)) id 15ZDS3-0003QV-00 for ; Tue, 21 Aug 2001 11:28:23 -0400 Received: from dtmf.pt.net (1Cust238.tnt3.little-rock.ar.da.uu.net [63.59.145.238]) by server3.safepages.com (Postfix) with ESMTP id 8539D5DB9 for ; Tue, 21 Aug 2001 15:28:20 +0000 (GMT) Received: from ccn by dtmf.pt.net with local (Exim 3.32 #1 (Debian)) id 15ZDFW-0006CM-00 for ; Tue, 21 Aug 2001 10:15:26 -0500 Date: Tue, 21 Aug 2001 10:15:26 -0500 From: Chris Nestrud To: speakup@braille.uwo.ca Subject: Re: fwd: vim Message-ID: <20010821101526.A23803@uark.edu> Mail-Followup-To: speakup@braille.uwo.ca References: <01082022543901.05391@susestar> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.20i Sender: speakup-admin@braille.uwo.ca Errors-To: speakup-admin@braille.uwo.ca X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: speakup@braille.uwo.ca List-Help: List-Post: List-Subscribe: , List-Id: Speakup is a screen review system for Linux. List-Unsubscribe: , List-Archive: 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