Path: 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 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