From: Simon Ruderich Date: Tue, 26 Aug 2008 21:23:20 +0000 (+0200) Subject: Added useful vim/ files. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=b99cd8ad7237ee0d8ee97ec072f5f6c9ebf9d75b;p=config%2Fdotfiles.git Added useful vim/ files. --- diff --git a/vim/after/ftplugin/crontab.vim b/vim/after/ftplugin/crontab.vim new file mode 100644 index 0000000..46a38c6 --- /dev/null +++ b/vim/after/ftplugin/crontab.vim @@ -0,0 +1,9 @@ +" Vim filetype plugin file +" Language: Crontab +" Maintainer: Simon Ruderich +" Last Change: 2008-05-20 + + +" Fix to allow vim edit crontab files as crontab doesn't work with +" backupcopy=auto. +setlocal backupcopy=yes diff --git a/vim/after/ftplugin/diff.vim b/vim/after/ftplugin/diff.vim new file mode 100644 index 0000000..9b50d34 --- /dev/null +++ b/vim/after/ftplugin/diff.vim @@ -0,0 +1,8 @@ +" Vim filetype plugin file +" Language: Diff +" Maintainer: Simon Ruderich +" Last Change: 2008-05-22 + + +" Make sure no spell checking is used in diff files. +setlocal nospell diff --git a/vim/after/ftplugin/vimperator.vim b/vim/after/ftplugin/vimperator.vim new file mode 100644 index 0000000..05ac71d --- /dev/null +++ b/vim/after/ftplugin/vimperator.vim @@ -0,0 +1,8 @@ +" Vim filetype plugin file +" Language: Vimperator +" Maintainer: Simon Ruderich +" Last Change: 2008-06-08 + + +" Use the same comment string as for vim files. +setlocal commentstring=\"%s diff --git a/vim/after/syntax/vim.vim b/vim/after/syntax/vim.vim new file mode 100644 index 0000000..379a14b --- /dev/null +++ b/vim/after/syntax/vim.vim @@ -0,0 +1,9 @@ +" Vim syntax file +" Language: Vim .vim files +" Maintainer: Simon Ruderich +" Last Change: 2008-05-20 + + +" Fix for the default .vim syntax to also recognize "syntax default" instead +" of "syntax def". +syn region vimHiLink contained oneline matchgroup=vimCommand start="\<\(def\(ault\)\?\s\+\)\=link\>\|\" end="$" contains=vimHiGroup,vimGroup,vimHLGroup,vimNotation diff --git a/vim/ftdetect/md.vim b/vim/ftdetect/md.vim new file mode 100644 index 0000000..01af12a --- /dev/null +++ b/vim/ftdetect/md.vim @@ -0,0 +1,8 @@ +" Vim filetype detection file +" Language: Markdown +" Maintainer: Simon Ruderich +" Last Change: 2008-05-20 + + +" Recognize .md as markdown files. +autocmd BufRead,BufNewFile *.md set filetype=mkd diff --git a/vim/ftdetect/tcl.vim b/vim/ftdetect/tcl.vim new file mode 100644 index 0000000..8779b09 --- /dev/null +++ b/vim/ftdetect/tcl.vim @@ -0,0 +1,8 @@ +" Vim filetype detection file +" Language: Tcl +" Maintainer: Simon Ruderich +" Last Change: 2008-05-28 + + +" Recognize .test as Tcl files. +autocmd BufRead,BufNewFile *.test set filetype=tcl