vim: move filedetection to .vim/ftdetect/ files
[shutils.git] / dotfiles / vim / .vimrc
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>