vim: move filedetection to .vim/ftdetect/ files
authorStefan Huber <shuber@sthu.org>
Mon, 7 Jan 2013 08:15:23 +0000 (09:15 +0100)
committerStefan Huber <shuber@sthu.org>
Mon, 7 Jan 2013 08:15:23 +0000 (09:15 +0100)
dotfiles/vim/.vim/ftdetect/easychair.vim [new file with mode: 0644]
dotfiles/vim/.vim/ftdetect/fortran.vim [new file with mode: 0644]
dotfiles/vim/.vim/ftdetect/gnuplot.vim [new file with mode: 0644]
dotfiles/vim/.vim/ftdetect/irssilog.vim [new file with mode: 0644]
dotfiles/vim/.vim/ftdetect/weechatlog.vim [new file with mode: 0644]
dotfiles/vim/.vimrc

diff --git a/dotfiles/vim/.vim/ftdetect/easychair.vim b/dotfiles/vim/.vim/ftdetect/easychair.vim
new file mode 100644 (file)
index 0000000..3518e29
--- /dev/null
@@ -0,0 +1 @@
+au BufRead,BufNewFile review_form_*.txt set filetype=easychair
diff --git a/dotfiles/vim/.vim/ftdetect/fortran.vim b/dotfiles/vim/.vim/ftdetect/fortran.vim
new file mode 100644 (file)
index 0000000..755d2c5
--- /dev/null
@@ -0,0 +1 @@
+au BufRead,BufNewFile *.INC    set filetype=fortran
diff --git a/dotfiles/vim/.vim/ftdetect/gnuplot.vim b/dotfiles/vim/.vim/ftdetect/gnuplot.vim
new file mode 100644 (file)
index 0000000..87434e8
--- /dev/null
@@ -0,0 +1,3 @@
+au BufRead,BufNewFile *.plt              set filetype=gnuplot
+au BufRead,BufNewFile *.plot      set filetype=gnuplot
+au BufRead,BufNewFile *.gnuplot   set filetype=gnuplot
diff --git a/dotfiles/vim/.vim/ftdetect/irssilog.vim b/dotfiles/vim/.vim/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/dotfiles/vim/.vim/ftdetect/weechatlog.vim b/dotfiles/vim/.vim/ftdetect/weechatlog.vim
new file mode 100644 (file)
index 0000000..66debef
--- /dev/null
@@ -0,0 +1 @@
+au BufRead,BufNewFile *.weechatlog         set filetype=weechatlog
index 7016d05d3984e491f4e43d32f11ecc6b651ea513..555238542fcc4ea6b003f0d47cfc0c5068e4fb7e 100644 (file)
@@ -85,28 +85,9 @@ set cursorline
 
 "let fortran_free_source=1
 au BufNewFile *.f90            set fortran_free_source=1
-au BufRead,BufNewFile *.INC    set filetype=fortran
 au Filetype fortran            set cindent cst csto=0
 
 
-
-
-"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-"  IRC logs
-"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-
-au BufRead,BufNewFile */.irssi/logs/*.log  set filetype=irssilog
-au BufRead,BufNewFile *.weechatlog         set filetype=weechatlog
-
-
-"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-"  Easychair conference system review form
-"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-
-au BufRead,BufNewFile review_form_*.txt set filetype=easychair
-au Syntax easychair runtime! syntax/easychair.vim
-
-
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 "  C, C++, C#, objc, java
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@@ -264,9 +245,7 @@ au Filetype python set shiftwidth=4
 au Filetype python set expandtab
 
 " Wrap text after a certain number of characters
-au BufRead,BufNewFile *.py,*.pyw set textwidth=79
-
-
+au Filetype python set textwidth=79
 
 
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@@ -282,10 +261,6 @@ au Filetype xml map <M-o> :call OpenIn("ipe") <CR>
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 
 
-au BufRead,BufNewFile *.plt              set filetype=gnuplot
-au BufRead,BufNewFile *.plot      set filetype=gnuplot
-au BufRead,BufNewFile *.gnuplot   set filetype=gnuplot
-
 "Opens the current file in ipe
 au Filetype gnuplot map <M-o> :call OpenIn("gnuplot -persist") <CR>