🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #2447

Re: Question on tab stops in vi

#2447
From: Hans Mulder
Date: Mon, 13 May 1991 10:43
23 lines
1106 bytes
In <1991May09.190644.13627@Kesa.COM> jerry@Kesa.COM (Jerry E. Dunmire) writes:


>Is there a way, short of changing editors, to deal with the
>following problem?

>   Is there a way to get a 4 space indent in vi without changing tab stops?

Just put the line

:set shiftwidth=4

in your .exrc file.  If you absolutely hate typing, you can abbreviate it to:

se sw=4

>   I've tried re-mapping the tab key, but without any luck.

You're supposed to use ^T to increment indent level, and ^D to decrement it.
Vi will automagically produce to optimal mix of tabs and spaces.


Hans Mulder	hansm@cs.kun.nl
Technical Details
Message-ID: <3557@wn1.sci.kun.nl>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!mcsun!hp4nl!sci.kun.nl!cs.kun.nl!hansm
References: <1991May09.190644.13627@Kesa.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!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: <3557@wn1.sci.kun.nl>
Date: 13 May 91 10:43:58 GMT
References: <1991May09.190644.13627@Kesa.COM>
Sender: root@sci.kun.nl
Distribution: comp
Organization: University of Nijmegen, The Netherlands
Lines: 23