From 9e0f764b675d987bbdd45af38531cc864c8cfc4c Mon Sep 17 00:00:00 2001 From: Shatur95 Date: Sat, 24 Apr 2021 17:29:00 +0300 Subject: Use BufNewFile,BufRead for query filetype --- ftdetect/query.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ftdetect') diff --git a/ftdetect/query.vim b/ftdetect/query.vim index 182242754..8339b6ba9 100644 --- a/ftdetect/query.vim +++ b/ftdetect/query.vim @@ -8,4 +8,4 @@ function! s:shouldFt(path) endif endfunction -autocmd BufEnter,BufNewFile *.scm call s:shouldFt(expand("%")) +autocmd BufNewFile,BufRead *.scm call s:shouldFt(expand("%")) -- cgit v1.2.3-70-g09d2