From: Tony Duckles Date: Sun, 25 Feb 2018 21:10:33 +0000 (-0600) Subject: .vimrc: Use real tabs in gitconfig files X-Git-Url: http://git.nynim.org/dotfiles.git/commitdiff_plain/3c8e7f4dfce0b38ecf50baf55f9259efe5aef979 .vimrc: Use real tabs in gitconfig files --- diff --git a/.vimrc b/.vimrc index ae25b52..51ff73c 100644 --- a/.vimrc +++ b/.vimrc @@ -478,17 +478,19 @@ command! StripTrailingWhitespace call StripTrailingWhitespace() " Auto Commands / File Types " --------------------------------------------------------------------------- -augroup vimrc_autocmds - " clear auto command group so we don't define it multiple times +" override Filetype settings +augroup vimrc_filetype autocmd! " sh config - au Filetype sh,bash set ts=4 sts=4 sw=4 expandtab + au Filetype sh,bash setlocal ts=4 sts=4 sw=4 expandtab let g:is_bash = 1 - " git commit message - au Filetype gitcommit set tw=68 spell - " don't use cindent for javascript + " git commit message: enable spell checking + au Filetype gitcommit setlocal spell + " gitconfig file: use real tabs + au Filetype gitconfig setlocal noexpandtab + " javascript: don't use cindent au FileType javascript setlocal nocindent - " in Makefiles, use real tabs not tabs expanded to spaces + " makefiles: use real tabs au FileType make setlocal noexpandtab augroup END