Xref: utzoo comp.unix.misc:1109 comp.editors:2709 Path: utzoo!news-server.csri.toronto.edu!rutgers!sun-barr!cs.utexas.edu!uunet!tellab5!vpnet!dattier From: dattier@vpnet.chi.il.us (David W. Tamkin) Newsgroups: comp.unix.misc,comp.editors Subject: Re: VI (can you fully justify test) Keywords: VI, vi, editing tricks Message-ID: <1991Mar12.055337.10655@vpnet.chi.il.us> Date: 12 Mar 91 05:53:37 GMT References: <668287724.2919@mindcraft.com> <1991Mar07.010020.294@convex.com> <1991Mar10.215552.8366@hybrid.UUCP> Organization: VPnet Public Access Unix, Villa Park, Illinois 60181-2206 Lines: 23 javey@hybrid.UUCP (shahram javey) wrote in <1991Mar10.215552.8366@hybrid.UUCP>: | Someone had asked how do you justify the text from within vi: | If simple text formatting is sufficient for your needs try | :%!fmt 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.) David Tamkin PO Box 7002 Des Plaines IL 60018-7002 dattier@vpnet.chi.il.us GEnie:D.W.TAMKIN CIS:73720,1570 MCIMail:426-1818 708 518 6769 312 693 0591