aboutsummaryrefslogtreecommitdiffstats
path: root/ftdetect/query.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftdetect/query.vim')
-rw-r--r--ftdetect/query.vim2
1 files changed, 1 insertions, 1 deletions
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("%"))