VI (can you fully justifiy test)

Chuck Karish karish at mindcraft.com
Thu Mar 7 05:28:43 AEST 1991


In article <1991Mar5.223022.14261 at informix.com> billd at infmx.informix.com
(William Daul) writes:
>Is there a way to fully justify text in VI?

    :map @ 1Gi.ad b^V^M^V^[-!Gnroff

(all keystrokes shown; "^V" (CTRL-V) is there to escape the
carriage return and the ESC)

After you make this macro, typing '@' from command mode will call
nroff to justify the whole file.

	Chuck Karish		karish at mindcraft.com
	Mindcraft, Inc.		(415) 323-9000



More information about the Comp.unix.misc mailing list