Article View: comp.editors
Article #3236Re: Paragraph Re-Formating in vi
From: Dave Bozak
Date: Fri, 29 Jul 1988 13:21
Date: Fri, 29 Jul 1988 13:21
14 lines
1027 bytes
1027 bytes
In article <2226@copper.SDP.TEK.COM> jackd@copper.SDP.TEK.COM (Jack Decker) writes:
>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
{rutgers,rochester}!sunybcs!oswego!dab
Technical Details
Message-ID:
<894@oswego.Oswego.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!lll-winken!lll-tis!ames!mailrus!uwmcsd1!leah!bingvaxu!sunybcs!oswego!dabReferences:
<2226@copper.SDP.TEK.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!lll-winken!lll-tis!ames!mailrus!uwmcsd1!leah!bingvaxu!sunybcs!oswego!dab From: dab@oswego.Oswego.EDU (Dave Bozak) Newsgroups: comp.editors Subject: Re: Paragraph Re-Formating in vi Summary: sure, use fmt Keywords: vi, paragraph, reformating Message-ID: <894@oswego.Oswego.EDU> Date: 29 Jul 88 13:21:57 GMT References: <2226@copper.SDP.TEK.COM> Reply-To: dab@oswego.oswego.edu.UUCP (Dave Bozak) Organization: SUNY Oswego Lines: 13