Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!haven.umd.edu!umbc3.umbc.edu!math9.math.umbc.edu!rouben From: rouben@math9.math.umbc.edu (Rouben Rostamian) Newsgroups: comp.editors Subject: Re: How to do this in VI.... Message-ID: <1991Apr30.164912.11331@umbc3.umbc.edu> Date: 30 Apr 91 16:49:12 GMT References: <1991Apr30.152450.18717@cec1.wustl.edu> Sender: newspost@umbc3.umbc.edu (News posting account) Organization: University of Maryland Baltimore County, Mathmatics Department Lines: 19 In article <1991Apr30.152450.18717@cec1.wustl.edu> abed@venus.wustl.edu (Abed M. Hammoud) writes: > Is there a way to pipe out the content of a buffer in Vi > to the printer. > So for example this would allow me to select part of the > screen, save it in lets say the a buffer. and then print > the contents of the buffer. To send a portion of your buffer to the printer, mark the beginning of range, say by m, go to the end of the range, and type :'m,.w !lpr You may have to replace the "lpr" command with whatenver command your system uses to send files to printers. -- Rouben Rostamian Telephone: (301) 455-2458 Department of Mathematics and Statistics e-mail: University of Maryland Baltimore County bitnet: rostamian@umbc.bitnet Baltimore, MD 21228, U.S.A. internet: rouben@math9.math.umbc.edu