From 20400cf82f0ec4981a6bb5ea102c557acbd0ae99 Mon Sep 17 00:00:00 2001 From: Ahmad Ansori Palembani Date: Sun, 14 Apr 2024 07:40:19 +0700 Subject: [PATCH] fix: Use filetype instead of filename Using filename caused autocmd called after modeline, caused it to overwrite whatever setting is set through modeline --- .config/vim/vim_uni | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/vim/vim_uni b/.config/vim/vim_uni index 5d557b0..e962d16 100644 --- a/.config/vim/vim_uni +++ b/.config/vim/vim_uni @@ -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