Article View: comp.editors
Article #3067Re: Reformatting in vi
From: Syd Weinstein
Date: Thu, 21 Jan 1988 22:23
Date: Thu, 21 Jan 1988 22:23
28 lines
1741 bytes
1741 bytes
In article <1988Jan19.102343.3255@nonvon.uucp> cfj@nonvon.UUCP (Charlie Judson) writes:
>
>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.
>--
>
> Charles Judson ...!ptsfa!nonvon!cfj
When I am using vi to enter long text documents, and yes, I do use vi
to enter long text documents, I set one of my function keys to be
remapped to !}fmt^M and then when I use that key it sends the text
from current line to end of paragraph to the fmt program and takes the
result back and replaces the text with it.
fmt is a utility I found on an old usenix tape, could even be a bsd
utility. All it does is reword wrap the lines. It does the job you
ask real well. However, I do find it necessary sometimes to redefine
then end of paragraph string in vi to include tables and my special
local macros.
--
=====================================================================
Sydney S. Weinstein, CDP, CCP
Datacomp Systems, Inc. Voice: (215) 947-9900
{allegra,bellcore,bpa,vu-vlsi}!dsinc!syd FAX: (215) 938-0235
Technical Details
Message-ID:
<316@dsinc.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!psuvax1!vu-vlsi!dsinc!sydReferences:
<1988Jan19.102343.3255@nonvon.uucp>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!psuvax1!vu-vlsi!dsinc!syd From: syd@dsinc.UUCP (Syd Weinstein) Newsgroups: comp.editors Subject: Re: Reformatting in vi Message-ID: <316@dsinc.UUCP> Date: 21 Jan 88 22:23:58 GMT References: <1988Jan19.102343.3255@nonvon.uucp> Reply-To: syd@dsinc.UUCP (Syd Weinstein) Distribution: na Organization: Datacomp Systems, Inc., Huntingdon Valley, PA 19006 Lines: 28