Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Oct 2003 22:59:34 -0700
From:      Bill Campbell <freebsd@celestial.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: vim and printing
Message-ID:  <20031011055934.GA21255@alexis.mi.celestial.com>
In-Reply-To: <20031011004213.6f6fe51e.b_cassidy@bellsouth.net>
References:  <20031011004213.6f6fe51e.b_cassidy@bellsouth.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031011055934.GA21255>