From: Stefan Huber Date: Tue, 24 Mar 2020 11:01:28 +0000 (+0100) Subject: Move filetype detection to files in ftdetect X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=24b80095f7be30c28b49af5348755b90f18cbe53;p=vimconf.git Move filetype detection to files in ftdetect --- 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