Tab wars revisited (was Re: Python indentation)

Mark 'Kamikaze' Hughes kamikaze at kuoi.asui.uidaho.edu
Fri Jul 9 20:07:49 CEST 2004


Christopher T King <squirrel at WPI.EDU>
wrote on Fri, 9 Jul 2004 09:07:07 -0400:
> On 8 Jul 2004, Mark 'Kamikaze' Hughes wrote:
>>   In Vim:
>> set sw=4 sta et ai bs=2
>>   Put that in your .vimrc, and you're done.  The key labelled Tab is now
>> just a convenient way of specifying "indent the standard four spaces",
>> and backspace on leading spaces removes the last four.  Done.
> I dunno... that looks like some kind of voodoo chant to me... ;)

  It can be written out in full:
set shiftwidth=4 smarttab expandtab autoindent backspace=indent,eol,start

  I'm just an old-timey Vim geek, so I use the short version.

-- 
 <a href="http://kuoi.asui.uidaho.edu/~kamikaze/"> Mark Hughes </a>
"The void breathed hard on my heart, turning its illusions to ice, shattering
 them.  Was reborn, then, free to scrawl own design on this morally blank
 world.  Was Rorschach." --Alan Moore, _Watchmen #6_, "The Abyss Gazes Also"



More information about the Python-list mailing list