VI (can you fully justify test)

shahram javey javey at hybrid.UUCP
Mon Mar 11 07:55:52 AEST 1991


Someone had asked how do you justify the text from within vi:

>From the keyboard of karish at mindcraft.com (Chuck Karish):
>:    :map @ 1Gi.ad b^V^M^V^[-!Gnroff
>

If simple text formatting is sufficient for your needs try

:%!fmt

The above format the whole file. If you just want to format lines 
10 to 30, say, try

:10,30!fmt

cheers...sj



More information about the Comp.unix.misc mailing list