]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Have pre-existing C files use 8 spaces indents (to match old PEP 7 style), but
authorBrett Cannon <bcannon@gmail.com>
Thu, 31 Aug 2006 22:42:37 +0000 (22:42 +0000)
committerBrett Cannon <bcannon@gmail.com>
Thu, 31 Aug 2006 22:42:37 +0000 (22:42 +0000)
have all new files use 4 spaces (to match current PEP 7 style).

Misc/Vim/vimrc

index 0df3bd9135aec6ad4293c6635cd0082867ab2c2b..b17826608056ee39f79e8620c34a71052196020e 100644 (file)
 " 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.