diff options
author | Brett Cannon <bcannon@gmail.com> | 2006-08-31 22:42:37 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2006-08-31 22:42:37 (GMT) |
commit | 76b24c09264efd9e86fd0cc44e21beb487cd62cc (patch) | |
tree | 6014c7f1d9d2bd52cd44761bb8964ed92f3b75f8 /Misc/Vim | |
parent | 6edd150172b7a96c497ae5cd3d6c2e031cd8d556 (diff) | |
download | cpython-76b24c09264efd9e86fd0cc44e21beb487cd62cc.zip cpython-76b24c09264efd9e86fd0cc44e21beb487cd62cc.tar.gz cpython-76b24c09264efd9e86fd0cc44e21beb487cd62cc.tar.bz2 |
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).
Diffstat (limited to 'Misc/Vim')
-rw-r--r-- | Misc/Vim/vimrc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Misc/Vim/vimrc b/Misc/Vim/vimrc index 0df3bd9..b178266 100644 --- a/Misc/Vim/vimrc +++ b/Misc/Vim/vimrc @@ -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. |