home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / question / 13347 < prev    next >
Encoding:
Text File  |  1992-11-13  |  1.5 KB  |  50 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!sun-barr!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!gmd.de!Germany.EU.net!mcsun!sunic!ericom!eos.ericsson.se!etxmesa
  3. From: etxmesa@eos.ericsson.se (Michael Salmon)
  4. Subject: Re: Vi-question
  5. Message-ID: <1992Nov13.080719.13102@ericsson.se>
  6. Sender: news@ericsson.se
  7. Nntp-Posting-Host: eos6c02.ericsson.se
  8. Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
  9. Organization: Ericsson Telecom AB
  10. References: <34054@adm.brl.mil> <1992Nov12.180534.1819@ncar.ucar.edu>
  11. Date: Fri, 13 Nov 1992 08:07:19 GMT
  12. Lines: 36
  13.  
  14. In article <1992Nov12.180534.1819@ncar.ucar.edu>, 
  15. tparker@music.scd.ucar.edu (Tom Parker) writes:
  16. |> In article <34054@adm.brl.mil> 
  17. |> yellow@judy.indstate.edu (S. Vemula) writes:
  18. |> >Hi,
  19. |> >   
  20. |> >     Sometime back, somebody mailed on how to use arrow keys in insert mode
  21. |> >     also, to move around in the document.  I think, it is by mapping the
  22. |> >     arrow keys.  Could somebody mail me as how i have to set up my keys.
  23. |> >
  24. |> >     thanks,
  25. |> >     Shank Vemula
  26. |> 
  27. |> 
  28. |> I do it with these lines in my .exrc file:
  29. |> 
  30. |> " Allow arrow keys to work in VI "text insert" mode
  31. |> :map! ^[OA ^[ka
  32. |> :map! ^[OB ^[ja
  33. |> :map! ^[OC ^[la
  34. |> :map! ^[OD ^[ha
  35.  
  36. Under SunOS 4.1.1 I needed to insert ^V's before the ^[ in my .exrc, I
  37. also think that it is better to map left arrow to ^[i as ^[ha will not
  38. work in column 1.
  39.  
  40. -- 
  41.  
  42. Michael Salmon
  43.  
  44. #include    <standard.disclaimer>
  45. #include    <witty.saying>
  46. #include    <fancy.pseudo.graphics>
  47.  
  48. Ericsson Telecom AB
  49. Stockholm
  50.