Path: utzoo!mnetor!tmsoft!torsqnt!jarvis.csri.toronto.edu!rutgers!att!mcdchg!mcdhup!motbos!artp From: artp@motbos.UUCP (Art Parmet) Newsgroups: comp.unix.questions Subject: Re: vi format command Summary: vi formatter available Keywords: paragraph vi editor Message-ID: <624@motbos.UUCP> Date: 15 Sep 89 12:36:21 GMT References: <964@alpha.lanl.gov> Organization: Motorola Semiconductor Products, Woburn, Ma. Lines: 22 In article <964@alpha.lanl.gov>, sct@alpha.lanl.gov (Stephen Tenbrink) writes: > Is there a technique for reformatting a paragraph when using vi? Sometimes .... There is a public domain program called "fill" which will do exactly what you want. By compiling it with the "justify" option as the default and naming it with a one letter command (like "f"), you can format a paragraph from the current cursor position to the end of the paragraph by: !}f The source is yours on reauest. Regards, Art -------------------------------- << Unusual Disclaimer >> Art Parmet - Northeast Area Eng Mgr @ Motorola Semiconductor, Woburn, Ma. UUCP: {hplabs!motsj1,decwrl!decvax,gatech!mcdchg,apollo,oakhill}..!motbos!artp Voice: +1 617-932-9700 Fax: +1 617-932-9100