home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- 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
- From: etxmesa@eos.ericsson.se (Michael Salmon)
- Subject: Re: Vi-question
- Message-ID: <1992Nov13.080719.13102@ericsson.se>
- Sender: news@ericsson.se
- Nntp-Posting-Host: eos6c02.ericsson.se
- Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
- Organization: Ericsson Telecom AB
- References: <34054@adm.brl.mil> <1992Nov12.180534.1819@ncar.ucar.edu>
- Date: Fri, 13 Nov 1992 08:07:19 GMT
- Lines: 36
-
- In article <1992Nov12.180534.1819@ncar.ucar.edu>,
- tparker@music.scd.ucar.edu (Tom Parker) writes:
- |> 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
-
- Under SunOS 4.1.1 I needed to insert ^V's before the ^[ in my .exrc, I
- also think that it is better to map left arrow to ^[i as ^[ha will not
- work in column 1.
-
- --
-
- Michael Salmon
-
- #include <standard.disclaimer>
- #include <witty.saying>
- #include <fancy.pseudo.graphics>
-
- Ericsson Telecom AB
- Stockholm
-