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
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to