Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!ccu.umanitoba.ca!herald.usask.ca!alberta!ubc-cs!uw-beaver!mit-eddie!wuarchive!zaphod.mps.ohio-state.edu!samsung!olivea!orc!inews!iwarp.intel.com!gargoyle!ddsw1!dattier From: dattier@ddsw1.MCS.COM (David W. Tamkin) Newsgroups: comp.editors Subject: Re: vi--backspace past beg-of-line Message-ID: <1991Feb11.211456.16556@ddsw1.MCS.COM> Date: 11 Feb 91 21:14:56 GMT References: <21841@oolong.la.locus.com> <1012@TALOS.UUCP> Organization: Contributor Account at ddsw1, Wheeling, Illinois Lines: 21 jerry@TALOS.UUCP (Jerry Gitomer) wrote in <1012@TALOS.UUCP>: | Yes, using the :map facility of vi. I picked this trick up | from Tom Christenson's articles here. Just do the following | (I used the four arrow keys since most of us have modern | keyboards): | | :map! ^[0A ^[ka | :map! ^[0B ^[ja | :map! ^[0C ^[lli | :map! ^[0D ^[i ^[lli? That won't work aif you started out at the end of the line. True, cursoring right from the end of a line makes no sense, but if you bump into the right arrow key you'll be in trouble. Try :map! ^[0C ^[la instead. Tom Christiansen should have known that ... unless Tom Christenson is some other person. David Tamkin Box 7002 Des Plaines IL 60018-7002 708 518 6769 312 693 0591 MCI Mail: 426-1818 GEnie: D.W.TAMKIN CIS: 73720,1570 dattier@ddsw1.mcs.com