Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!hp4nl!sci.kun.nl!cs.kun.nl!hansm From: hansm@cs.kun.nl (Hans Mulder) Newsgroups: comp.editors Subject: Re: Question on tab stops in vi Keywords: vi tabs Message-ID: <3606@wn1.sci.kun.nl> Date: 31 May 91 09:52:39 GMT References: <1991May09.190644.13627@Kesa.COM> <3557@wn1.sci.kun.nl> <1991May16.153123.260@dde.dk> <163851@felix.UUCP> Sender: root@sci.kun.nl Distribution: comp Organization: University of Nijmegen, The Netherlands Lines: 36 In <163851@felix.UUCP> asylvain@felix.UUCP (Alvin "the Chipmunk" Sylvain) writes: >Written in article <1991May16.153123.260@dde.dk> > by kbe@dde.dk (Kjeld Borch Egevang): >: hansm@cs.kun.nl (Hans Mulder) writes: >: > I've tried re-mapping the tab key, but without any luck. I didn't. Jerry E. Dunmire said that. I said something similar to Kjeld: >: It is possible. Type >: >: :map! ^V^V xxxx >: >: to to xxxx >Unfortunately, this does not work for ^T, which sure as heck would be >useful. It complains, "missing rhs [right hand side]." It works for ^T, at least in vi version SVR3.1. Your best bet is typing three control-Vs in both relevant places: :map! ^V^V^V ^V^V^V^T This is echoed as :map! ^V ^T Remember to type a after the . You'll get the dreaded "missing rhs" message if you forget it. And yes, this :map! is very useful when you :set shiftwidth to something other than 8. -- Have a nice day, Hans Mulder hansm@cs.kun.nl