vimrc: add augroup for filetype autocmds
This commit is contained in:
parent
9bea067fbe
commit
a85ccd7318
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user