.vimrc: add syntax rules for *.gitconfig files
This commit is contained in:
parent
016317de11
commit
66dfed0c7c
3
.vimrc
3
.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
|
||||
|
|
|
|||
Loading…
Reference in New Issue