'Vi' cursor movement
Maarten Litmaath
maart at cs.vu.nl
Sat Feb 10 08:17:13 AEST 1990
In article <5220001 at hpmwetg.HP.COM>,
dondd at 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 at cs.vu.nl, uunet!mcsun!botter!maart
More information about the Comp.unix.questions
mailing list