Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site psivax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!bellcore!decvax!tektronix!hplabs!sdcrdcf!psivax!friesen From: friesen@psivax.UUCP (Stanley Friesen) Newsgroups: net.unix Subject: Re: ma(pping) Re: h,j,k,l in vi Message-ID: <356@psivax.UUCP> Date: Mon, 4-Mar-85 14:01:37 EST Article-I.D.: psivax.356 Posted: Mon Mar 4 14:01:37 1985 Date-Received: Sat, 9-Mar-85 10:40:15 EST References: <8242@brl-tgr.ARPA> <726@ucbtopaz.CC.Berkeley.ARPA> <338@psivax.UUCP> <610@vu44.UUCP> Reply-To: friesen@psivax.UUCP (Stanley friesen) Distribution: net Organization: Pacesetter Systems Inc., Sylmar, CA Lines: 33 Summary: In article <610@vu44.UUCP> tstorm@vu44.UUCP writes: >> But 'vi' *doesn't* force h,j,k,l cursor control on you. >>Every version of it that I have ever seen also supports the *real* >>arrow keys on terminals that have them. Why not use them if you >>don't like the ADM3-a approach. >etc. etc. >> > >You were probably using a version 2.XX which uses the ma(pping) >definition of termcap. >Imagine the following situation: >The cursor-right key sends ctrl-L >The redraw screen command of visual is ctrl-L > >Now map ctrl-L on l and ctrl-P on ctrl-L >The redraw screen command of visual is now ctrl-P >and one can use the arrow keys. > >Can anyone comment on the question why version 3.X does not use >'ma' anymore? >-- In fact I have used mostly 3.X. What MY vi does is automatically use the k* special key definations from termcap. If cursor-right is CTL-L then that assignment takes precedence over using CTL-L as a redraw command(I know since I am using an adm11). There is a *second* redraw screen command CTL-R which I use without needing to resort to mapping. -- Sarima (Stanley Friesen) {trwrb|allegra|cbosgd|hplabs|ihnp4|aero!uscvax!akgua}!sdcrdcf!psivax!friesen or {ttdica|quad1|bellcore|scgvaxd}!psivax!friesen