🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #3235

Re: Paragraph Re-Formating in vi

#3235
From: Scott Horne
Date: Fri, 29 Jul 1988 13:25
14 lines
899 bytes
From article <2226@copper.SDP.TEK.COM>, by jackd@copper.SDP.TEK.COM (Jack Decker):
> 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?

Yes, but it requires an external program called `fmt'.

Go anywhere within the paragraph you want to format, then type this:

{!}fmt<cr>

The <cr> represents "carriage return".

`fmt' should be in your /usr/ucb directory.
Technical Details
Message-ID: <2376@hubcap.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!nosc!ucsd!rutgers!gatech!hubcap!shorne
References: <2226@copper.SDP.TEK.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!nosc!ucsd!rutgers!gatech!hubcap!shorne
From: shorne@citron (Scott Horne)
Newsgroups: comp.editors
Subject: Re: Paragraph Re-Formating in vi
Message-ID: <2376@hubcap.UUCP>
Date: 29 Jul 88 13:25:07 GMT
References: <2226@copper.SDP.TEK.COM>
Sender: news@hubcap.UUCP
Reply-To: shorne@citron
Lines: 13