Xref: utzoo comp.unix.questions:19829 comp.editors:1321 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!snorkelwacker!bloom-beacon!eru!luth!sunic!mcsun!hp4nl!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.unix.questions,comp.editors Subject: Re: 'Vi' cursor movement Message-ID: <5351@star.cs.vu.nl> Date: 9 Feb 90 21:17:13 GMT References: <5220001@hpmwetg.HP.COM> Sender: news@cs.vu.nl Reply-To: maart@cs.vu.nl (Maarten Litmaath) Followup-To: comp.editors Organization: VU Informatika, Amsterdam, the Netherlands Lines: 27 In article <5220001@hpmwetg.HP.COM>, dondd@hpmwtd.HP.COM (Don Dillon) writes: \... Is it possible to map some keys such that they would act just \like the h-j-k-l cursor movement keys, but would move the cursor while \in the insert mode? [...] ----------8<----------8<----------8<----------8<----------8<---------- map! ^H ^[i map! ^L ^[la map! ^K ^[kli map! ^V ^[jli ----------8<----------8<----------8<----------8<----------8<---------- ...where ^X stands for control-X (^[ is escape). If you want to enter a control character literally, in vi you have to precede it with ^V. \... \# map the cntl-h key to move cursor left while in insert mode \... In a .exrc file a comment is introduced with a `"' instead of a `#'. Followups to comp.editors. -- The meek get the earth, Henry the moon, the rest of us have other plans. | Maarten Litmaath @ VU Amsterdam: maart@cs.vu.nl, uunet!mcsun!botter!maart