diff options
-rw-r--r-- | misc/dotfiles/vimrc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/misc/dotfiles/vimrc b/misc/dotfiles/vimrc index 2b78b0e..5a31ae8 100644 --- a/misc/dotfiles/vimrc +++ b/misc/dotfiles/vimrc @@ -15,6 +15,12 @@ set shiftwidth=4 " Limit text width. set textwidth=79 +" Do not expand tabs and use eight space indentation for C files. +autocmd FileType c setlocal noexpandtab +autocmd FileType c setlocal tabstop=8 +autocmd FileType c setlocal softtabstop=8 +autocmd FileType c setlocal shiftwidth=8 + " In Makefiles, don't expand tabs to spaces, since we need the actual tabs. autocmd FileType make setlocal noexpandtab |