From owner-freebsd-questions@FreeBSD.ORG Sun Jul 6 17:29:44 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0FBD37B401 for ; Sun, 6 Jul 2003 17:29:44 -0700 (PDT) Received: from praetor.linc-it.com (hardtime.linuxman.net [66.147.26.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCAEF43FBD for ; Sun, 6 Jul 2003 17:29:41 -0700 (PDT) (envelope-from fullermd@over-yonder.net) Received: from mortis.over-yonder.net (adsl-156-171-246.jan.bellsouth.net [66.156.171.246]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by praetor.linc-it.com (Postfix) with ESMTP id 0608715497; Sun, 6 Jul 2003 19:29:40 -0500 (CDT) Received: by mortis.over-yonder.net (Postfix, from userid 100) id 9C98120F37; Sun, 6 Jul 2003 02:39:27 -0500 (CDT) Date: Sun, 6 Jul 2003 02:39:27 -0500 From: "Matthew D. Fuller" To: adrian kok Message-ID: <20030706073927.GD1226@over-yonder.net> References: <20030704152038.M66107-100000@cactus.fi.uba.ar> <20030705190416.43951.qmail@web21202.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030705190416.43951.qmail@web21202.mail.yahoo.com> User-Agent: Mutt/1.4.1i-fullermd.1 X-Editor: vi X-OS: FreeBSD cc: freebsd-questions@freebsd.org Subject: Re: vi X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 00:29:44 -0000 On Sun, Jul 06, 2003 at 03:04:16AM +0800 I heard the voice of adrian kok, and lo! it spake thus: > > My friend puts some words in in.txt eg: > > xxx > wq! > > and vi < in.txt > > then this program in in.txt will automatically do it > and finally save and exit With vim, use -s (see manpage). -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ "The only reason I'm burning my candle at both ends, is because I haven't figured out how to light the middle yet"