Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!bloom-beacon!snorkelwacker!tut.cis.ohio-state.edu!ucbvax!hplabs!hpl-opus!hpnmdla!hpmwtd!dondd From: dondd@hpmwtd.HP.COM (Don Dillon) Newsgroups: comp.unix.questions Subject: 'Vi' cursor movement Message-ID: <5220001@hpmwetg.HP.COM> Date: 8 Feb 90 20:46:14 GMT Organization: HP Microwave Tech. - Santa Rosa, Ca. Lines: 41 This is a question concerning 'vi' 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? Maybe its already built into the editor and I'm missing this feature in the documentation, but I'll be darned if I can find any reference to it at all. What I would like is to add into my .exrc file something like this ( where 'xxx' is what I'm looking for ) : # # map the cntl-h key to move cursor left while in insert mode # map ^H xxx # # map the cntl-j key to move cursor down while in insert mode # map ^J xxx # # map the cntl-k key to move cursor up while in insert mode # map ^K xxx # # map the cntl-l key to move cursor right while in insert mode # map ^L xxx # # I would appreciate any help at all, thanx. Don Dillon INTERNET : dondd@hpmwetg HPDESK : Don Dillon /HP5700/UX TELNET : 577-2869