aboutsummaryrefslogtreecommitdiff
path: root/vim/after/indent/c.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/after/indent/c.vim')
-rw-r--r--vim/after/indent/c.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/vim/after/indent/c.vim b/vim/after/indent/c.vim
index dfc50242..ad01aceb 100644
--- a/vim/after/indent/c.vim
+++ b/vim/after/indent/c.vim
@@ -1,9 +1,11 @@
" Use hard tabs for C
-setlocal noexpandtab shiftwidth=0 tabstop=8
+setlocal noexpandtab
+setlocal shiftwidth=0
+let b:undo_indent .= '|setlocal expandtab< shiftwidth<'
if &softtabstop != -1
let &softtabstop = &shiftwidth
+ let b:undo_indent .= '|setlocal softtabstop<'
endif
-let b:undo_indent .= '|setlocal expandtab< shiftwidth< softtabstop< tabstop<'
" If the path to the file looks like the Vim sources, set 'shiftwidth' to 4
if expand('%:p') =~# '/vim.*src/'