ERICMC@USU.BITNET (Eric McQueen) (02/23/88)
Here's an alternative to the {!}fmt and related commands (believe it or not,
"{!}fmt" doesn't work on a couple of kludged versions of vi that I use).
map ^K ^V|F r^M|map K 080^K
Note that "^l" always means type CTRL-V followed by CTRL-l (where "l" is K, V,
or M). To "reformat" a paragraph, hold down the SHIFT key with a left finger
and type "JKJKJKJK" or "JJJJJKKKK" or something similar. I know it's not ever
close to perfect, but I still prefer it to "fmt". "72^K" (no CTRL-V this time)
temporarilly uses a different right margin.
:map K 072^K
semi-permanently changes the right margin. The "0" in "072" is "required"
(explanations of this to /dev/nul, please). I thought this map was impossible
because none of \|, CTRL-Q |, and CTRL-V | will quote | into a map. I should
have knowm it was CTRL-V CTRL-V |. It must be obvious because all those
kludged versions of vi do it the same way. ;-)
---
Eric Tye McQueen Mathematics Department Also at (after some
ericmc@usu.bitnet Utah State University time in March):
(801) 753-4683 Logan, Utah 84322-3900 ericmc@usu.usu.edu
UUCP: ...{uunet,psuvax1}!usu.bitnet!ericmc "Nothing is obvious
CSNET: ericmc%usu.bitnet@relay.cs.net unless you're over-
Apra?: ericmc%usu.bitnet@cunyvm.cuny.edu looking something."