From owner-freebsd-questions@FreeBSD.ORG Fri Oct 10 22:59:36 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 5BA0E16A4B3 for ; Fri, 10 Oct 2003 22:59:36 -0700 (PDT) Received: from mail.mi.celestial.com (dagney.celestial.com [192.136.111.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1D6F43F3F for ; Fri, 10 Oct 2003 22:59:35 -0700 (PDT) (envelope-from bill@celestial.com) Received: by mail.mi.celestial.com (Postfix, from userid 203) id D09EE11EB25; Fri, 10 Oct 2003 22:59:34 -0700 (PDT) Date: Fri, 10 Oct 2003 22:59:34 -0700 From: Bill Campbell To: freebsd-questions@freebsd.org Message-ID: <20031011055934.GA21255@alexis.mi.celestial.com> Mail-Followup-To: freebsd-questions@freebsd.org References: <20031011004213.6f6fe51e.b_cassidy@bellsouth.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031011004213.6f6fe51e.b_cassidy@bellsouth.net> User-Agent: Mutt/1.4.1i Subject: Re: vim and printing X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd@celestial.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Oct 2003 05:59:36 -0000 On Sat, Oct 11, 2003, Bryan Cassidy wrote: >All this talk about vim made me wonder something.. BTW, I love vim >compared to vi. Don't know what it is yet but I felt very comfortable >and confident using it. I was just wondering. Is there a way to print >with a command "inside" vi? Sometimes I would just like to print the >file and don't want to quit, save, and print it. These two sequences will write and print the file :w :!lpr % Bill -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``The whole aim of practical politics is to keep the populace alarmed (and hence clamorous to be led to safety) by an endless series of hobgoblins.'' -- H.L. Mencken, 1923