]> git.sthu.org Git - vimconf.git/commitdiff
Move filetype detection to files in ftdetect
authorStefan Huber <shuber@sthu.org>
Tue, 24 Mar 2020 11:01:28 +0000 (12:01 +0100)
committerStefan Huber <shuber@sthu.org>
Tue, 24 Mar 2020 11:01:28 +0000 (12:01 +0100)
ftdetect/irssilog.vim [new file with mode: 0644]
ftdetect/mutt.vim [new file with mode: 0644]
ftdetect/tex.vim [new file with mode: 0644]
init.vim

diff --git a/ftdetect/irssilog.vim b/ftdetect/irssilog.vim
new file mode 100644 (file)
index 0000000..a76a29f
--- /dev/null
@@ -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 (file)
index 0000000..8b2b730
--- /dev/null
@@ -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 (file)
index 0000000..c537c71
--- /dev/null
@@ -0,0 +1 @@
+au BufRead,BufNewFile *.cls setlocal filetype=tex
index a14e564944123c94897a0b61e9a5a9f8f155618c..f4b86e15bd31c35038a1255deb31810f8e3c7745 100644 (file)
--- 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