🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #3070

Re: Reformatting in vi

#3070
From: Kevin Carothers
Date: Fri, 22 Jan 1988 04:46
68 lines
2391 bytes
  Charles Judson       ...!ptsfa!nonvon!cfj

     (original text follows...)
->When editing with vi is there a "paragraph reform" capability similar to 
->Control-b in Wordstar?  If I insert a sentence or otherwise garble the 
->line length I'm only able to fix it manually by inserting carriage
->returns at the proper places thru the end of the paragraph.  Suggestions
->as to a better way would be gratefully appreciated.


----------
Watch my fingers carefully, and do the following steps:

step 1.   Mark The beginning of the paragraph with a ":ka".

step 2.   Position to the last line of the paragraph, and type in the
          following character sequence *EXACTLY*:

                !'anroff

     You should get the following *INSERTED* at marker position 
     "a";

When editing with vi is there  a  "paragraph  reform"  capability
similar to Control-b in Wordstar?  If I insert a sentence or oth-
erwise garble the line length I'm only able to fix it manually by
inserting  carriage  returns at the proper places thru the end of
the paragraph.  Suggestions as to a better way would be grateful-
ly appreciated.

                             CAVEAT
                             ======
     You'll also get a page-full of empty lines. But hey, It beats
     doing what you were doing before, right?

NOW ---
For all you 'nroff' gurus out there;

     I can't seem to get nroff to  keep from inserting all those lines of
     blank stuff in my buffer. Any suggestions?


P.S.
====
If you want, you could preceed each paragraph with a ".PP", and
enter the "bang" command as follows;

              !'anroff -ms

This will format a bunch of paragraphs in succession. Use at your
own discretion. Advised that you bone up on some nroff documentation
if you carry this activity to extremes.


Viva Vi!


Kevin


[...sign here]!{csun,psivax,rdlvax,trwrb,...to name a few}!ttidca!kevin





     
Technical Details
Message-ID: <1723@ttidca.TTI.COM>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!linus!philabs!ttidca!kevin
References: <1988Jan19.102343.3255@nonvon.uucp>

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: <1723@ttidca.TTI.COM>
Date: 22 Jan 88 04:46:29 GMT
References: <1988Jan19.102343.3255@nonvon.uucp>
Reply-To: kevin@ttidcb.tti.com (Kevin Carothers)
Distribution: na
Organization: Citicorp/TTI, Peoples Republic of Santa Monica
Lines: 68