[comp.editors] 'Vi' cursor movement

maart@cs.vu.nl (Maarten Litmaath) (02/10/90)

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