summaryrefslogtreecommitdiffstats
path: root/vim/ftdetect/git.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/ftdetect/git.vim')
-rw-r--r--vim/ftdetect/git.vim18
1 files changed, 0 insertions, 18 deletions
diff --git a/vim/ftdetect/git.vim b/vim/ftdetect/git.vim
deleted file mode 100644
index 727bf0c..0000000
--- a/vim/ftdetect/git.vim
+++ /dev/null
@@ -1,18 +0,0 @@
-" Git
-autocmd BufNewFile,BufRead *.git/COMMIT_EDITMSG set ft=gitcommit
-autocmd BufNewFile,BufRead *.git/config,.gitconfig,.gitmodules set ft=gitconfig
-autocmd BufNewFile,BufRead git-rebase-todo set ft=gitrebase
-autocmd BufNewFile,BufRead .msg.[0-9]*
- \ if getline(1) =~ '^From.*# This line is ignored.$' |
- \ set ft=gitsendemail |
- \ endif
-autocmd BufNewFile,BufRead *.git/**
- \ if getline(1) =~ '^\x\{40\}\>\|^ref: ' |
- \ set ft=git |
- \ endif
-
-" This logic really belongs in scripts.vim
-autocmd BufNewFile,BufRead,StdinReadPost *
- \ if getline(1) =~ '^\(commit\|tree\|object\) \x\{40\}\>\|^tag \S\+$' |
- \ set ft=git |
- \ endif