Path: utzoo!utgpu!attcan!uunet!husc6!linus!philabs!ttidca!kevin From: kevin@ttidca.TTI.COM (Kevin Carothers) Newsgroups: comp.editors Subject: Re: Paragraph Re-Formating in vi Keywords: vi, paragraph, reformating Message-ID: <3003@ttidca.TTI.COM> Date: 1 Aug 88 22:57:57 GMT References: <2226@copper.SDP.TEK.COM> <894@oswego.Oswego.EDU> Reply-To: kevin@ttidcb.tti.com (Kevin Carothers) Organization: Citicorp/TTI, Santa Monica Lines: 41 >In article <2226@copper.SDP.TEK.COM> jackd@copper.SDP.TEK.COM (Jack Decker) writ es: >>I know you vi can do wrapped margins when you are initially entering >>text, but is there any way to force it to reformat the paragraph if >>you add or delete text to a paragraph that already exists? >Sure, use fmt (if you don't have it on your system, there are PD versions): > >:f,l!fmt > >where f is line number of first line of paragraph >and l is line number of last line of paragraph > >-dave > dab@rocky.oswego.edu Huh? I thought we had this discussion months ago. Anyway, I don't like this method because it leaves "ragged" right-hand margins. It looks a lot better if you put a ".pl 1" command at the top of your paragraph, position your cursor to the ".", and enter the command "!}nroff". This gives "justified" right-hand margins, like in this posting. More fun facts and trivia from: _ , __ ' ) / / ) _/_ / /-< _ , __o ____ / __. __ ____/ /_ _ __ _ / )