Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!purdue!bu-cs!dartvax!coat.com From: andyb@coat.com (Andy Behrens) Newsgroups: comp.unix.questions Subject: Re: Vi Message-ID: <13816@dartvax.Dartmouth.EDU> Date: 6 Jun 89 19:16:22 GMT References: <19890@adm.BRL.MIL> Sender: news@dartvax.Dartmouth.EDU Reply-To: andyb@coat.com Organization: Burlington Coat Factory Warehouse Lines: 24 In article <19890@adm.BRL.MIL> thoyt@ddn-wms.arpa (Thomas Hoyt) writes: > Can Vi reformat a paragraph, justifying it properly.... Vi can't do it by itself, but it can easily pipe the paragraph through a formatting program. If you put the following line in your .exrc file, you can type "V" when the cursor is anywhere in a paragraph, and the entire paragraph will be rejustified by being piped through "fmt". map V 0}!{fmt^M} Note: the ^M above represents an actual carriage return. You will need to type " " when editing the .exrc file. -- Live justly, love gently, walk humbly. Andy Behrens andyb@coat.com also: andyb%coat@dartmouth.edu also: {harvard,rutgers,decvax}!dartvax!coat!andyb RFD 1, Box 116, East Thetford, Vt. 05043 (802) 649-1258 Burlington Coat, PO Box 729, Lebanon, N.H. 03766 (603) 448-5000