🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #2728

Re: Question on tab stops in vi

#2728
From: Hans Mulder
Date: Fri, 31 May 1991 09:52
36 lines
1554 bytes
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<tab> xxxx
>: 
>: to <tab> 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<tab> ^V^V^V^T

This is echoed as

:map! ^V	 ^T

Remember to type a <space> after the <tab>.
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
Technical Details
Message-ID: <3606@wn1.sci.kun.nl>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!hp4nl!sci.kun.nl!cs.kun.nl!hansm
References: <1991May09.190644.13627@Kesa.COM> <3557@wn1.sci.kun.nl> <1991May16.153123.260@dde.dk> <163851@felix.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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