fix: Use filetype instead of filename
Using filename caused autocmd called after modeline, caused it to overwrite whatever setting is set through modeline
This commit is contained in:
parent
8a6051b017
commit
20400cf82f
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ augroup END
|
|||
" ----- indent for corresponding extension
|
||||
autocmd BufEnter *.py set ai sw=4 ts=4 sta et fo=croql
|
||||
" in C files, tabs looks like 4 spaces, but it's actually tabs
|
||||
autocmd BufEnter *.c set ai sw=4 ts=4 sta noet fo=croql
|
||||
autocmd Filetype c set ai sw=4 ts=4 sta noet fo=croql
|
||||
autocmd BufEnter *.md set ai sw=3 ts=3 sta et fo=croql
|
||||
autocmd Filetype html* set ai sw=4 ts=4 sta et fo=croql
|
||||
autocmd Filetype *css set ai sw=4 ts=4 sta et fo=croql
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue