From: Craig Files Date: 2002-03-22T07:46:46+09:00 Subject: Re: Mini Rant: Indenting On Mon, 18 Mar 2002 09:12:18 -0700, Paul Brannan wrote: > On Mon, Mar 18, 2002 at 02:14:47AM +0900, Thomas Hurst wrote: >> Why is it that I see *so* much code like: >> >> (uri/generic.rb) >> if USERINFO !~ v >> 桟祁祁祁raise InvalidComponentError, >> 桟祁祁祁 "bad component(expected userinfo component or >> user component): #{v}" >> end > > AFAIK, it's a vi thing. If I set: > :set tabstop=8 > :set shiftwidth=2 > :set autoindent > > then vi's autoindent inserts a tab any time it sees 8 spaces. If anyone > knows a way around this, I'm all ears. > > Note that vim does not have this problem, since it has the "expandtab" > option. > > Paul Put :set expandtab in your .vimrc file. ... This specifies that while in autoindent mode spaces are used instead of tabs. To place a tab while in this mode use . Craig -- ___________________________________________________________________________ Craig Files, PhD | / http://coxcomb.ftc.agilent.com/~cfiles/ | __o / craig_files@agilent.com | \<, / ____________________________________________|_____()/ ()____/ (970)288-0183