ma(pping) in vi

Chris Torek chris at umcp-cs.UUCP
Fri Mar 8 07:41:08 AEST 1985


> From: friesen at psivax.UUCP (Stanley Friesen)
>
> ... vi [3.X] ... automatically use[es] the k* special key definitions
> from termcap.  If cursor-right is CTL-L then that assignment takes
> precedence over using CTL-L as a redraw command....  There is a
> *second* redraw screen command CTL-R which I use without needing to
> resort to mapping.

One problem: the ^R redraw command is to redraw with minimal changes,
not to rewrite the whole screen.  It's used to remove the ``@'' lines
vi uses for dumb terminals when ``redraw'' is not set.  (:set redraw
makes vi simulate line I/D by rewriting the screen, which is painful
at low baud rates.)

^R won't fix your screen after a background message is printed, for
example.  (You can always resort to ^Z/fg . . . .)
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 4251)
UUCP:	{seismo,allegra,brl-bmd}!umcp-cs!chris
CSNet:	chris at umcp-cs		ARPA:	chris at maryland



More information about the Comp.unix mailing list