Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sun-barr!newstop!texsun!convex!convex.COM From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.editors Subject: Re: vi for power users Message-ID: <111414@convex.convex.com> Date: 15 Dec 90 15:41:30 GMT References: <7150:Dec1309:42:4690@kramden.acf.nyu.edu> <1990Dec14.174605.19649@ddsw1.MCS.COM> Sender: news@convex.com Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 30 From the keyboard of it1@ra.MsState.Edu (Tim Tsai): : New question. Is there a way to get vi to recognize the cursor keys :on input mode? Sure, use my .exrc -- basically do this: " ARROW MACROS next four let arrows keys work in insert mode; map! ^V^[OA ^V^[ka map! ^V^[OB ^V^[ja map! ^V^[OC ^V^[lli map! ^V^[OD ^V^[i " " Who says you can't emulate emacs in vi? :-) " map! ^B ^V^[i map! ^F ^V^[lli map! ^A ^V^[I map! ^E ^V^[A " " There are probably extra-v's there cause of how i develop these, but that won't hurt anything. --tom -- Tom Christiansen tchrist@convex.com convex!tchrist "With a kernel dive, all things are possible, but it sure makes it hard to look at yourself in the mirror the next morning." -me