diff --git a/.vimrc b/.vimrc index 009f2ac..39d1d28 100644 --- a/.vimrc +++ b/.vimrc @@ -27,6 +27,9 @@ set softtabstop=4 " Activate filetype plugin (e.g. for automatically using tabs instead of spaces in Makefiles) filetype plugin on +" Syntax rules for custom file extensions/patterns +autocmd BufNewFile,BufRead *.gitconfig set syntax=gitconfig + " Indentation for Python (use 4 spaces) "autocmd FileType python setlocal expandtab shiftwidth=4 softtabstop=4 autocmd FileType yml,yaml setlocal ts=2 sts=2 sw=2 expandtab