.vimrc: add syntax rules for *.gitconfig files

This commit is contained in:
Lexi / Zoe 2021-03-16 12:37:15 +01:00
parent 016317de11
commit 66dfed0c7c
Signed by: binaryDiv
GPG Key ID: F8D4956E224DA232
1 changed files with 3 additions and 0 deletions

3
.vimrc
View File

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