Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.bhp.com.au!mel.dit.csiro.au!munnari.OZ.AU!news.ecn.uoknor.edu!qns3.qns.com!imci4!newsfeed.internetmci.com!info.ucla.edu!library.ucla.edu!news.ucdavis.edu!chip.ucdavis.edu!not-for-mail From: fzshenau@chip.ucdavis.edu (Gregory Shenaut) Newsgroups: comp.unix.bsd.bsdi.misc Subject: Re: Silly but annoying vi question Date: 14 Apr 1996 21:29:19 GMT Organization: University of California, Davis Lines: 21 Message-ID: <4krqnf$sfs@mark.ucdavis.edu> References: <4knefr$n34@cronkite.ocis.temple.edu> NNTP-Posting-Host: chip.ucdavis.edu X-Newsreader: TIN [UNIX 1.3 950824BETA PL0] Mary Kingston (mary@thunder.ocis.temple.edu) wrote: : I am having what I can only describe as a very silly problem : working in VI on my BSDI 2.1 system. My cursor keys won't : reposition the cursor when I am in command mode. Instead, : they insert the "A", "B", "C", or "D" character from the : arrow escape sequence into the file. This is usally some kind of termcap problem--for vi to know what the arrow keys send, it has to be part of the termcap description of the terminal. The relevant termcap variables are "kl", "ku", and so on. I have fiddled with these in the past and always managed to get them working (the crummiest case was a terminal that sent ^Z as the down-arrow), but I long ago decided it was worth it to switch to hjkl--this works on all machines and doesn't depend on a valid termcap. (I just asked my 10-year-old daughter "What's the command in vi to go up a line", and she said "k".) -- Greg Shenaut -- gkshenaut@ucdavis.edu