From 66dfed0c7c1254579cbbbe1fb656cbe9848c5314 Mon Sep 17 00:00:00 2001 From: binaryDiv Date: Tue, 16 Mar 2021 12:37:15 +0100 Subject: [PATCH] .vimrc: add syntax rules for *.gitconfig files --- .vimrc | 3 +++ 1 file changed, 3 insertions(+) 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