diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2013-09-16 16:53:38 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2013-09-16 16:54:16 +0200 |
commit | d7873996b43339f6d272ffa8e3616a4e5793dc26 (patch) | |
tree | 15449a6f9f916414b8a8bec3d63fd18c44ec720a /ftdetect/git.vim | |
parent | 73cbf0269e137499d22949da48cb71a24f7bfa73 (diff) | |
download | vim-polyglot-d7873996b43339f6d272ffa8e3616a4e5793dc26.tar.gz vim-polyglot-d7873996b43339f6d272ffa8e3616a4e5793dc26.zip |
Concat ftdetect scripts and mention startup cost in the README
Diffstat (limited to 'ftdetect/git.vim')
-rw-r--r-- | ftdetect/git.vim | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/ftdetect/git.vim b/ftdetect/git.vim deleted file mode 100644 index b1b14e0d..00000000 --- a/ftdetect/git.vim +++ /dev/null @@ -1,20 +0,0 @@ -" Git -autocmd BufNewFile,BufRead *.git/{,modules/**/}{COMMIT_EDIT,MERGE_}MSG set ft=gitcommit -autocmd BufNewFile,BufRead *.git/config,.gitconfig,.gitmodules set ft=gitconfig -autocmd BufNewFile,BufRead */.config/git/config set ft=gitconfig -autocmd BufNewFile,BufRead *.git/modules/**/config 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 |