From: Stefan Huber Date: Mon, 7 Jan 2013 08:15:23 +0000 (+0100) Subject: vim: move filedetection to .vim/ftdetect/ files X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=c916e384b5ca6acbeaff24c8ebaa4240ed9ae116;p=shutils.git vim: move filedetection to .vim/ftdetect/ files --- diff --git a/dotfiles/vim/.vim/ftdetect/easychair.vim b/dotfiles/vim/.vim/ftdetect/easychair.vim new file mode 100644 index 0000000..3518e29 --- /dev/null +++ b/dotfiles/vim/.vim/ftdetect/easychair.vim @@ -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 index 0000000..755d2c5 --- /dev/null +++ b/dotfiles/vim/.vim/ftdetect/fortran.vim @@ -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 index 0000000..87434e8 --- /dev/null +++ b/dotfiles/vim/.vim/ftdetect/gnuplot.vim @@ -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 index 0000000..a76a29f --- /dev/null +++ b/dotfiles/vim/.vim/ftdetect/irssilog.vim @@ -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 index 0000000..66debef --- /dev/null +++ b/dotfiles/vim/.vim/ftdetect/weechatlog.vim @@ -0,0 +1 @@ +au BufRead,BufNewFile *.weechatlog set filetype=weechatlog diff --git a/dotfiles/vim/.vimrc b/dotfiles/vim/.vimrc index 7016d05..5552385 100644 --- a/dotfiles/vim/.vimrc +++ b/dotfiles/vim/.vimrc @@ -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 :call OpenIn("ipe") """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -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 :call OpenIn("gnuplot -persist")