+++ /dev/null
-" Vim filetype plugin file
-" Language: Crontab
-" Maintainer: Simon Ruderich <simon@ruderich.org>
-" Last Change: 2008-05-20
-
-
-" Fix to allow Vim edit crontab files as crontab doesn't work with
-" backupcopy=auto.
-setlocal backupcopy=yes
+++ /dev/null
-" Vim filetype plugin file
-" Language: deb files
-" Maintainer: Simon Ruderich <simon@ruderich.org>
-" Last Change: 2009-08-01
-
-
-" Make sure no spell checking is used in deb files.
-setlocal nospell
+++ /dev/null
-" Vim filetype plugin file
-" Language: Diff
-" Maintainer: Simon Ruderich <simon@ruderich.org>
-" Last Change: 2008-05-22
-
-
-" Make sure no spell checking is used in diff files.
-setlocal nospell
+++ /dev/null
-" Vim filetype plugin file
-" Language: Git commit
-" Maintainer: Simon Ruderich <simon@ruderich.org>
-" Last Change: 2009-03-14
-
-
-" Don't use the modeline as the diff created by `git commit -v` may contain
-" one which could change the filetype or other settings of the commit window.
-setlocal nomodeline
-let g:secure_modelines_allowed_items = []
+++ /dev/null
-" Vim filetype plugin file
-" Language: Perl
-" Maintainer: Simon Ruderich <simon@ruderich.org>
-" Last Change: 2008-10-28
-
-
-" Allow folding.
-let perl_fold = 1
-let perl_fold_blocks = 1
+++ /dev/null
-" Vim filetype plugin file
-" Language: tar files
-" Maintainer: Simon Ruderich <simon@ruderich.org>
-" Last Change: 2009-08-01
-
-
-" Make sure no spell checking is used in tar files.
-setlocal nospell
+++ /dev/null
-" Vim filetype plugin file
-" Language: Vimperator
-" Maintainer: Simon Ruderich <simon@ruderich.org>
-" Last Change: 2008-06-08
-
-
-" Use the same comment string as for Vim files.
-setlocal commentstring=\"%s
\ execute "normal! g'\"" |
\ endif
+" Fix to allow Vim edit crontab files as crontab doesn't work with
+" backupcopy=auto.
+ autocmd FileType crontab setlocal backupcopy=yes
+
+" Make sure no spell checking is used in deb files.
+ autocmd FileType deb setlocal nospell
+
+" Make sure no spell checking is used in diff files.
+ autocmd FileType diff setlocal nospell
+
+" Don't use the modeline as the diff created by `git commit -v` may contain
+" one which could change the filetype or other settings of the commit window.
+ autocmd FileType gitcommit setlocal nomodeline |
+ \ let g:secure_modelines_allowed_items = []
+
+" Allow folding.
+ autocmd FileType perl let perl_fold = 1 |
+ \ let perl_fold_blocks = 1
+
+" Make sure no spell checking is used in tar files.
+ autocmd FileType tar setlocal nospell
+
+" Use the same comment string as for Vim files.
+ autocmd FileType vimperator setlocal commentstring=\"%s
+
" Use diff filetype for mercurial patches in patch queue.
autocmd BufReadPost */.hg/patches/* set filetype=diff