home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!gumby!destroyer!ncar!music.scd.ucar.edu!tparker
- From: tparker@music.scd.ucar.edu (Tom Parker)
- Subject: Re: Vi-question
- Message-ID: <1992Nov12.180534.1819@ncar.ucar.edu>
- Sender: news@ncar.ucar.edu (USENET Maintenance)
- Organization: Scientific Computing Divison/NCAR Boulder, CO
- References: <34054@adm.brl.mil>
- Date: Thu, 12 Nov 1992 18:05:34 GMT
- Lines: 23
-
- In article <34054@adm.brl.mil> yellow@judy.indstate.edu (S. Vemula) writes:
- >Hi,
- >
- > Sometime back, somebody mailed on how to use arrow keys in insert mode
- > also, to move around in the document. I think, it is by mapping the
- > arrow keys. Could somebody mail me as how i have to set up my keys.
- >
- > thanks,
- > Shank Vemula
-
-
- I do it with these lines in my .exrc file:
-
- " Allow arrow keys to work in VI "text insert" mode
- :map! ^[OA ^[ka
- :map! ^[OB ^[ja
- :map! ^[OC ^[la
- :map! ^[OD ^[ha
- --
- +--------------------------------------------------------------------+
- | Tom Parker | National Center for Atmospheric Research |
- | tparker@ncar.ucar.edu | (303) 497-1227 |
- +--------------------------------------------------------------------+
-