commit 02654968fdc7c5cd66f90e3d17a552e91b0be4f7
parent 797c5e0768ce297db7399e70308a9191fd78432f
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Tue, 6 Oct 2020 12:06:39 +0200
Move Vim filetype detection to filetype.vim
Former-commit-id: 3c51cee9c54ba2bef4246b4c35a6bd055465594d
Diffstat:
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/vim/filetype.vim b/vim/filetype.vim
@@ -0,0 +1,7 @@
+if exists("did_load_filetypes")
+ finish
+endif
+augroup filetypedetect
+ autocmd! BufRead,BufNewFile *.nfo,*.NFO setfiletype nfo
+ autocmd! BufRead,BufNewFile *.puml setfiletype plantuml
+augroup END
diff --git a/vim/ftdetect/nfo.vim b/vim/ftdetect/nfo.vim
@@ -1 +0,0 @@
-autocmd BufRead,BufNewFile *.nfo,*.NFO set filetype=nfo
diff --git a/vim/ftdetect/plantuml.vim b/vim/ftdetect/plantuml.vim
@@ -1 +0,0 @@
-autocmd BufRead,BufNewFile *.puml set filetype=plantuml