Re: Tabs vs Spaces (was Possible bug?)

"Seth Remington" <[email protected]> Sat, 17 Mar 2007 20:41:40 -0400
Newsgroups gmane.comp.python.webware
Message-ID <[email protected]>
For you vi folks put this in your .vimrc:

autocmd BufEnter *.py set tabstop=4 expandtab softtabstop=4 shiftwidth=4 autoindent

which will use four spaces for tabs (for .py files only) and then you
can run the command ":%retab" which will replace all <Tabs> with the
value of tabstop (4 spaces in the above example).

Christoph is right though... patches would be a nightmare if everybody
is not coding to the same standard.

-Seth 

-- 
Seth Remington
SaberLogic LLC
661 Suite B Weber Drive   Wadsworth, Ohio   44281
[email protected]   Ph: 330.335.6442    Fax: 330.336.8559

>>> <[email protected]> 03/16/07 5:34 PM >>>
What if you stayed with tabs and then added a converter, so that you can quickly convert the tabs to the number of spaces that you want?  In fact, this might be a good idea for a lot of free source Python projects distributed on the web -- though I would suspect it would be better to use tabs as the default and offer the ability to convert to space because sometimes it's possible it might not look quite right converting a project coded for spaces to tabs.



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV