]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
Added useful vim/ files.
authorSimon Ruderich <simon@ruderich.com>
Tue, 26 Aug 2008 21:23:20 +0000 (23:23 +0200)
committerSimon Ruderich <simon@ruderich.org>
Tue, 26 Aug 2008 21:23:20 +0000 (23:23 +0200)
vim/after/ftplugin/crontab.vim [new file with mode: 0644]
vim/after/ftplugin/diff.vim [new file with mode: 0644]
vim/after/ftplugin/vimperator.vim [new file with mode: 0644]
vim/after/syntax/vim.vim [new file with mode: 0644]
vim/ftdetect/md.vim [new file with mode: 0644]
vim/ftdetect/tcl.vim [new file with mode: 0644]

diff --git a/vim/after/ftplugin/crontab.vim b/vim/after/ftplugin/crontab.vim
new file mode 100644 (file)
index 0000000..46a38c6
--- /dev/null
@@ -0,0 +1,9 @@
+" Vim filetype plugin file
+" Language:     Crontab
+" Maintainer:   Simon Ruderich <simon@ruderich.com>
+" 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 (file)
index 0000000..9b50d34
--- /dev/null
@@ -0,0 +1,8 @@
+" Vim filetype plugin file
+" Language:     Diff
+" Maintainer:   Simon Ruderich <simon@ruderich.com>
+" 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 (file)
index 0000000..05ac71d
--- /dev/null
@@ -0,0 +1,8 @@
+" Vim filetype plugin file
+" Language:     Vimperator
+" Maintainer:   Simon Ruderich <simon@ruderich.com>
+" 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 (file)
index 0000000..379a14b
--- /dev/null
@@ -0,0 +1,9 @@
+" Vim syntax file
+" Language:     Vim .vim files
+" Maintainer:   Simon Ruderich <simon@ruderich.com>
+" 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\>\|\<def\>" end="$"        contains=vimHiGroup,vimGroup,vimHLGroup,vimNotation
diff --git a/vim/ftdetect/md.vim b/vim/ftdetect/md.vim
new file mode 100644 (file)
index 0000000..01af12a
--- /dev/null
@@ -0,0 +1,8 @@
+" Vim filetype detection file
+" Language:     Markdown
+" Maintainer:   Simon Ruderich <simon@ruderich.com>
+" 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 (file)
index 0000000..8779b09
--- /dev/null
@@ -0,0 +1,8 @@
+" Vim filetype detection file
+" Language:     Tcl
+" Maintainer:   Simon Ruderich <simon@ruderich.com>
+" Last Change:  2008-05-28
+
+
+" Recognize .test as Tcl files.
+autocmd BufRead,BufNewFile *.test set filetype=tcl