vimrc: add augroup for filetype autocmds

This commit is contained in:
surtur 2022-10-06 15:39:34 +02:00
parent 9bea067fbe
commit a85ccd7318
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -610,6 +610,8 @@ augroup save_load_views
au BufWinEnter *.* loadview au BufWinEnter *.* loadview
augroup END augroup END
augroup filetypes
autocmd!
au FileType xml setlocal shiftwidth=4 tabstop=4 au FileType xml setlocal shiftwidth=4 tabstop=4
au FileType html setlocal shiftwidth=4 tabstop=4 au FileType html setlocal shiftwidth=4 tabstop=4
@ -671,6 +673,7 @@ au BufNewFile,BufRead *.cshtml
" no autocomments, for example when entering insert mode above or below a " no autocomments, for example when entering insert mode above or below a
" commented line " commented line
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
augroup END
augroup line_too_long augroup line_too_long