From fb3563dba2dc50a614c4f4d8ca74363c63c50a4a Mon Sep 17 00:00:00 2001 From: monkoose Date: Mon, 21 Mar 2022 16:00:22 +0200 Subject: [PATCH] Fix loading setting and syntax files multiple times Read `:h :setf` --- ftdetect/fennel.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftdetect/fennel.vim b/ftdetect/fennel.vim index 1db1fec..ed5d4b1 100644 --- a/ftdetect/fennel.vim +++ b/ftdetect/fennel.vim @@ -4,5 +4,5 @@ fun! s:DetectFennel() endif endfun -autocmd BufRead,BufNewFile *.fnl setlocal filetype=fennel +autocmd BufRead,BufNewFile *.fnl setfiletype fennel autocmd BufNewFile,BufRead * call s:DetectFennel()