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

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!gumby!destroyer!ncar!music.scd.ucar.edu!tparker
  3. From: tparker@music.scd.ucar.edu (Tom Parker)
  4. Subject: Re: Vi-question
  5. Message-ID: <1992Nov12.180534.1819@ncar.ucar.edu>
  6. Sender: news@ncar.ucar.edu (USENET Maintenance)
  7. Organization: Scientific Computing Divison/NCAR Boulder, CO
  8. References: <34054@adm.brl.mil>
  9. Date: Thu, 12 Nov 1992 18:05:34 GMT
  10. Lines: 23
  11.  
  12. In article <34054@adm.brl.mil> yellow@judy.indstate.edu (S. Vemula) writes:
  13. >Hi,
  14. >   
  15. >     Sometime back, somebody mailed on how to use arrow keys in insert mode
  16. >     also, to move around in the document.  I think, it is by mapping the
  17. >     arrow keys.  Could somebody mail me as how i have to set up my keys.
  18. >
  19. >     thanks,
  20. >     Shank Vemula
  21.  
  22.  
  23. I do it with these lines in my .exrc file:
  24.  
  25. " Allow arrow keys to work in VI "text insert" mode
  26. :map! ^[OA ^[ka
  27. :map! ^[OB ^[ja
  28. :map! ^[OC ^[la
  29. :map! ^[OD ^[ha
  30. --
  31. +--------------------------------------------------------------------+
  32. | Tom Parker             |  National Center for Atmospheric Research |
  33. | tparker@ncar.ucar.edu  |  (303) 497-1227                           |
  34. +--------------------------------------------------------------------+
  35.