From 24b80095f7be30c28b49af5348755b90f18cbe53 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Tue, 24 Mar 2020 12:01:28 +0100 Subject: [PATCH] Move filetype detection to files in ftdetect --- ftdetect/irssilog.vim | 1 + ftdetect/mutt.vim | 2 ++ ftdetect/tex.vim | 1 + init.vim | 10 ---------- 4 files changed, 4 insertions(+), 10 deletions(-) create mode 100644 ftdetect/irssilog.vim create mode 100644 ftdetect/mutt.vim create mode 100644 ftdetect/tex.vim diff --git a/ftdetect/irssilog.vim b/ftdetect/irssilog.vim new file mode 100644 index 0000000..a76a29f --- /dev/null +++ b/ftdetect/irssilog.vim @@ -0,0 +1 @@ +au BufRead,BufNewFile */.irssi/logs/*.log set filetype=irssilog diff --git a/ftdetect/mutt.vim b/ftdetect/mutt.vim new file mode 100644 index 0000000..8b2b730 --- /dev/null +++ b/ftdetect/mutt.vim @@ -0,0 +1,2 @@ +au BufRead,BufNewFile ~/.mutt/tmp/*mutt-* setlocal filetype=mail +au BufRead,BufNewFile *.muttrc setlocal filetype=neomuttrc diff --git a/ftdetect/tex.vim b/ftdetect/tex.vim new file mode 100644 index 0000000..c537c71 --- /dev/null +++ b/ftdetect/tex.vim @@ -0,0 +1 @@ +au BufRead,BufNewFile *.cls setlocal filetype=tex diff --git a/init.vim b/init.vim index a14e564..f4b86e1 100644 --- a/init.vim +++ b/init.vim @@ -127,16 +127,6 @@ let g:vim_markdown_frontmatter=1 let g:vim_markdown_math=1 -"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" Some filetype settings - -" mutt and neomutt -au BufRead,BufNewFile ~/.mutt/tmp/*mutt-* setlocal filetype=mail -au BufRead,BufNewFile *.muttrc setlocal filetype=neomuttrc - -au BufRead,BufNewFile *.cls setlocal filetype=tex - - """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Some filetype-specific settings -- 2.39.5