tstorm@vu44.UUCP (Theo van der Storm) (02/28/85)
In article <338@psivax.UUCP> friesen@psivax.UUCP (Stanley friesen) writes: >In article <726@ucbtopaz.CC.Berkeley.ARPA> mwm@ucbtopaz.UUCP \ (Praiser of Bob) writes: >> etc. etc. >>>If you have ever seen an adm-3a terminal you will know where h,j,k,l come etc. etc. > 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? -- Theo van der Storm, 52 20'N / 4 52'E, {seismo|decvax|philabs}!mcvax!vu44!tstorm
friesen@psivax.UUCP (Stanley Friesen) (03/04/85)
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
chris@umcp-cs.UUCP (Chris Torek) (03/08/85)
> From: friesen@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@umcp-cs ARPA: chris@maryland