🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #3071

Re: Reformatting in vi

#3071
From: Kevin Carothers
Date: Fri, 22 Jan 1988 18:23
49 lines
2209 bytes
Time to  follow up on my own posting. 

In my response  to paragraph reformatting inside vi, the technique
I described inserted a page-full of blank lines inside the message text.
I've since been fiddling with it, and have found that if you define a
".pl n" at the first line of your paragraph, with 'n' being the
approximate length in inches of the paragraph, it will cut the number
of blank lines out.  

To rehash what the entire sequence of steps is, I'll use my own 
paragraph above as an example;

(...original text, preceeded by a ".pl 2")
.pl 2
In my response  to paragraph reformatting inside vi, the technique
I described inserted a page-full of blank lines inside the message text.
I've since been fiddling with it, and have found that if you define a
".pl n" at the first line of your paragraph, with 'n' being the
approximate length in inches of the paragraph, it will cut the number
of blank lines out.  

     By marking the '.pl 2' line with ":ka<cr>", and entering 
     the command sequence;
              !'anroff 

 The paragraph is reformatted as;

In my response  to paragraph reformatting inside  vi,  the  tech-
nique  I described inserted a page-full of blank lines inside the
message text.  I've since been fiddling with it, and  have  found
that if you define a ".pl n" at the first line of your paragraph,
with 'n' being the approximate length in inches of the paragraph,
it will cut the number of blank lines out.


...With only a *few* blank lines.

P.S.
Many Thanks to the poster of the original  question. Vi is an editor
which gets so much bad press that I always relish getting a chance to 
show what it can really do.



Kevin


[...sign here]!{csun,psivax,rdlvax,trwrb,...to name a few}!ttidca!kevin
Technical Details
Message-ID: <1726@ttidca.TTI.COM>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!linus!philabs!ttidca!kevin
References: <1988Jan19.102343.3255@nonvon.uucp> <1723@ttidca.TTI.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!linus!philabs!ttidca!kevin
From: kevin@ttidca.TTI.COM (Kevin Carothers)
Newsgroups: comp.editors
Subject: Re: Reformatting in vi
Message-ID: <1726@ttidca.TTI.COM>
Date: 22 Jan 88 18:23:58 GMT
References: <1988Jan19.102343.3255@nonvon.uucp> <1723@ttidca.TTI.COM>
Reply-To: kevin@ttidcb.tti.com (Kevin Carothers)
Distribution: na
Organization: Citicorp/TTI, Santa Monica
Lines: 49