VI (can you fully justify test)

Randal L. Schwartz merlyn at iwarp.intel.com
Thu Mar 14 02:40:26 AEST 1991


In article <1991Mar12.055337.10655 at vpnet.chi.il.us>, dattier at vpnet (David W. Tamkin) writes:
| fmt must be something in BSD Unix.  The question of justifying within vi
| comes up often, and someone always says "Filter through fmt, that's all!"
| 
| Then someone else says, "There's no fmt on my system."  I've certainly never
| found it anywhere I've had shell access.
| 
| (Actually, fmt, if it does what I think it does, will just reduce the
| raggedness of the right edge; it won't right-justify text.  My personal
| opinion is that ragged-right text is far easier to read, but that's another
| matter.  Perhaps there are some command-line options to fmt that will make it
| actually justify the right margin or, if that's what it does with no options
| specified, there might be an option to have it produce output with a ragged
| right margin as great as possible without exceeding a specified maximum.)

If the text is simple (relatively troff-escape free), I just put

	.ad b
	.ll 70
	.pl 1

in front, and say

	!!nroff

Simple.

Just another 'roff hacker,
-- 
/=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\
| on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III      |
| merlyn at iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn |
\=Cute Quote: "Intel: putting the 'backward' in 'backward compatible'..."====/



More information about the Comp.unix.misc mailing list