VI map question

Charles J. Antonelli cja at zippy.eecs.umich.edu
Wed Aug 17 11:54:34 AEST 1988


In article <1668 at aplcomm.jhuapl.edu> @aplvax.jhuapl.edu:jwm at stdc.jhuapl.edu (Jim Meritt) writes:
>I am trying to get fmt mapped in my .exrc (to format and replace text) ...

i use:
	map @ {j!}fmt^M}be
hitting @ anywhere within a paragraph formats the paragraph, then positions
to the next paragraph.  you type ^V^M to put ^M in your .exrc (assuming ^V is
your `literal-next' character).  you can replace `fmt' with any legal shell
command line, which should answer your second question.

Charles J. Antonelli          Internet: cja at crim.eecs.umich.edu
44 ATL, 1101 Beal Ave.        Uucp: {ihnp4,umix,citi}!umich!eecs.umich.edu!cja
The University of Michigan    Phone: 313-936-9362
Ann Arbor, MI   49109-2210    "When the going gets tough, the tough reboot."



More information about the Comp.unix.questions mailing list