From 59a9478b647921403f27ef61131c0c38da3ee7dc Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 4 Aug 2009 15:34:39 +0200 Subject: [PATCH] vimrc: Move some settings from ftdetect to vimrc. This was done to reduce the number of small ftdetect files. Files with more complex checks are still used. --- vim/ftdetect/md.vim | 8 -------- vim/ftdetect/tcl.vim | 8 -------- vimrc | 6 ++++++ 3 files changed, 6 insertions(+), 16 deletions(-) delete mode 100644 vim/ftdetect/md.vim delete mode 100644 vim/ftdetect/tcl.vim diff --git a/vim/ftdetect/md.vim b/vim/ftdetect/md.vim deleted file mode 100644 index 2c9b7e9..0000000 --- a/vim/ftdetect/md.vim +++ /dev/null @@ -1,8 +0,0 @@ -" 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 deleted file mode 100644 index 4324e20..0000000 --- a/vim/ftdetect/tcl.vim +++ /dev/null @@ -1,8 +0,0 @@ -" 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 diff --git a/vimrc b/vimrc index f62f44c..8486d56 100644 --- a/vimrc +++ b/vimrc @@ -255,6 +255,12 @@ if has('autocmd') " Use the same comment string as for Vim files. autocmd FileType vimperator setlocal commentstring=\"%s +" Recognize .md as markdown files. + autocmd BufRead,BufNewFile *.md set filetype=mkd + +" Recognize .test as Tcl files. + autocmd BufRead,BufNewFile *.test set filetype=tcl + " Use diff filetype for mercurial patches in patch queue. autocmd BufReadPost */.hg/patches/* set filetype=diff -- 2.45.2