Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!TALOS!jerry From: jerry@talos.npri.com (Jerry Gitomer) Newsgroups: comp.editors Subject: Re: line moving while in insert mode Keywords: line moving while in insert mode Message-ID: <2074@talos.npri.com> Date: 26 Apr 91 18:05:17 GMT References: <6219@beryl12.UUCP> <1991Apr22.031302.5020@cbfsb.att.com> <2042@talos.npri.com> Distribution: world Organization: NPRI, Alexandria VA Lines: 50 jerry@talos.npri.com (Jerry Gitomer) writes: |rosen@cbnewsb.cb.att.com (steven.b.rosen) writes (in response to another |article): || The only movement I know of while in insert mode is ^W (control W). || This will back you up one word. You can type this as many times as || you want, but you cant back up beyond your initial insert point. If || you find any commands, please post them here. |The following map commands allow me to use my cursor keys to move around |while in insert mode. (If you right arrow to the last character in a line |you will get bounced out of insert mode, but otherwise they work as |expected.) |map! OA ka |map! OB ja |map! OC lli |map! OD i Oops! I should have realized that either vi or the mailer would nail me on the escape characters I copied from in my .exrc. What I meant to have you see is: map! ^[0A ^[ka map! ^[0B ^[ja map! ^[0C ^[lli map! ^[0D ^[i The easy way of entering the map commands is to do as follows: map! SPACE CTL-V UP-ARROW SPACE CTL-V ESC ka map! SPACE CTL-V DOWN-ARROW SPACE CTL-V ESC ja map! SPACE CTL-V RIGHT-ARROW SPACE CTL-V ESC lli map! SPACE CTL-V LEFT-ARROW SPACE CTL-V ESC i || PS: Does anyone have any constructive comments about the "elvis" || gnu vi clone? I'd like to have vi on my pc, and free is a good || price. But I dont want to waste my time downloading & compiling || if it's not worth it. |I am using elvis and like it. I use vi throughout the day and find that |elvis is close enough to vi to fool me. A bonus, IMHO, is that since I |have the source I can add (or strip out) features as the spirit moves me. -- Jerry Gitomer at National Political Resources Inc, Alexandria, VA USA I am apolitical, have no resources, and speak only for myself. Ma Bell (703)683-9090 (UUCP: ...uunet!uupsi!npri6!jerry )