[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: VIM Indentation (Was: Re: spam and debian-curiosa [ot])



On Tue, Jan 22, 2002 at 01:34:43PM +0000, Karl E. Jorgensen wrote:
> On Tue, Jan 22, 2002 at 01:28:11PM +0000, Adam Olsen wrote:
> > If I knew what all those options meant I might care.  Well, probably
> > not.  I'll put the reply wherever I want to, and any editor that tries
> > to force it otherwise is broken[0].
> > 
> > [0] such as vim, which seems to be autoindenting my python code at 8
> > spaces, despite having noautoindent set and a tabstop of 4...
> 
> As far as I understand, vim does not indent by tabs. Instead it uses
> shiftwidth. Tabs and indentation are two different things (although tabs
> are often *used* for indentation).

Afaik it can be made to indent with tabs, and I use my tab key to get
indentation, but I agree, not quite the same thing.

:set shiftwidth=4 does make it line up properly, but still leaves the
question of how to turn it off together.  Neither shiftwidth=0 nor
noshiftwidth work.

I suppose it's a vim bug, but I havn't reported it for fear of getting
told to RTFM.


-- 
Adam Olsen, aka Rhamphoryncus



Reply to: