VI (can you fully justifiy test)

Kim Christian Madsen kimcm at diku.dk
Thu Mar 7 20:47:02 AEST 1991


billd at infmx.informix.com (William Daul) writes:

>Is there a way to fully justify text in VI?

You cannot in any way justify text, unless you know the pre-
cise  meaning of the text, not in vi nor in any other editor
word-processor (-;

Actually it is possible to have text fully adjusted  in  vi,
however  it  requires  an external program, such as nroff or
the like. What you do is to pipe the text from vi  into  the
external program and replacing the original content with the
adjusted content. The command for doing this to a  paragraph
is  "!}<command>" and from the cursor position to the end of
document "!G<command>" as in "!Gnroff -me".

				Regards,
				Kim Chr. Madsen
				kimcm at diku.dk

PS. This text was written in vi and adjusted with nroff.



More information about the Comp.unix.misc mailing list