Article View: comp.editors
Article #3079Re: Reformatting in vi
From: Andrew Fullford
Date: Fri, 29 Jan 1988 17:56
Date: Fri, 29 Jan 1988 17:56
35 lines
1328 bytes
1328 bytes
In article <1723@ttidca.TTI.COM>, kevin@ttidca.TTI.COM (Kevin Carothers) writes:
>
> 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?
Preceding your text with the following nroff requests eliminates the
blank lines and more closely simulates 'fmt' by disabling hyphenation
and adjusted right margins:
.pl 1
.hy 0
.na
If you have access, or the ear of your system supervisor, these can
be installed in /usr/lib/tmac/tmac.fmt (say). Instead of mapping
a reformat key to
{!}fmt^M
map it to
{!}nroff -mfmt^M
This is a little slower than fmt (nroff is bigger), but if you don't
have fmt ...
With a little shell script work, you can also make a fmt this way,
and no need for access to /usr/lib/tmac.
Andrew Fullford
Britton Lee, Inc.
Technical Details
Message-ID:
<4032@blia.BLI.COM>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!pyramid!voder!blia!akfReferences:
<1988Jan19.102343.3255@nonvon.uucp> <1723@ttidca.TTI.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!pyramid!voder!blia!akf From: akf@blia.BLI.COM (Andrew Fullford) Newsgroups: comp.editors Subject: Re: Reformatting in vi Message-ID: <4032@blia.BLI.COM> Date: 29 Jan 88 17:56:06 GMT References: <1988Jan19.102343.3255@nonvon.uucp> <1723@ttidca.TTI.COM> Distribution: na Organization: Britton Lee, Los Gatos, CA Lines: 34 Summary: no need for blank lines with nroff