This 8 vs 4 is getting cruftier and cruftier.  (And does it deal
properly with existing code that already has four spaces because it
was written recently?)

"Tim" regularly fixes whitespace already, with little damage.

Would it make sense to do a one-time cutover on the 2.6 trunk?
How about the bugfix branches?

If it is ever going to happen, then immediately after a release,
before unfreezing, is probably the best time.

-jJ

---------- Forwarded message ----------
From: brett.cannon <[EMAIL PROTECTED]>
Date: Aug 31, 2006 6:42 PM
Subject: [Python-checkins] r51674 - python/trunk/Misc/Vim/vimrc
To: [EMAIL PROTECTED]


Author: brett.cannon
Date: Fri Sep  1 00:42:37 2006
New Revision: 51674

Modified:
   python/trunk/Misc/Vim/vimrc
Log:
Have pre-existing C files use 8 spaces indents (to match old PEP 7 style), but
have all new files use 4 spaces (to match current PEP 7 style).


Modified: python/trunk/Misc/Vim/vimrc
==============================================================================
--- python/trunk/Misc/Vim/vimrc (original)
+++ python/trunk/Misc/Vim/vimrc Fri Sep  1 00:42:37 2006
@@ -19,9 +19,10 @@
 " Number of spaces to use for an indent.
 " This will affect Ctrl-T and 'autoindent'.
 " Python: 4 spaces
-" C: 4 spaces
+" C: 8 spaces (pre-existing files) or 4 spaces (new files)
 au BufRead,BufNewFile *.py,*pyw set shiftwidth=4
-au BufRead,BufNewFile *.c,*.h set shiftwidth=4
+au BufRead *.c,*.h set shiftwidth=8
+au BufNewFile *.c,*.h set shiftwidth=4

 " Number of spaces that a pre-existing tab is equal to.
 " For the amount of space used for a new tab use shiftwidth.
_______________________________________________
Python-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/python-checkins
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to