Vi

Andy Behrens andyb at coat.com
Wed Jun 7 05:16:22 AEST 1989


In article <19890 at adm.BRL.MIL> thoyt at ddn-wms.arpa (Thomas Hoyt) writes:
>   Can Vi reformat a paragraph, justifying it properly....

Vi can't do it by itself, but it can easily pipe the paragraph through
a formatting program.

If you put the following line in your .exrc file, you can type "V" when
the cursor is anywhere in a paragraph, and the entire paragraph will be
rejustified by being piped through "fmt".

	map V   0}!{fmt^M}

Note: the ^M above represents an actual carriage return.  You will need
to type "<ctrl-V> <return>" when editing the .exrc file.

--
Live justly, love gently, walk humbly.
					Andy Behrens
					andyb at coat.com

also:   andyb%coat at dartmouth.edu
also:   {harvard,rutgers,decvax}!dartvax!coat!andyb
RFD 1, Box 116, East Thetford, Vt. 05043		(802) 649-1258
Burlington Coat, PO Box 729, Lebanon, N.H. 03766	(603) 448-5000



More information about the Comp.unix.questions mailing list