diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index a90094e..f13fe3c 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1930,7 +1930,6 @@ augroup END augroup fugitive_blame autocmd! - autocmd BufReadPost *.fugitiveblame setfiletype fugitiveblame autocmd FileType fugitiveblame setlocal nomodeline | if exists('b:git_dir') | let &l:keywordprg = s:repo().keywordprg() | endif autocmd Syntax fugitiveblame call s:BlameSyntax() autocmd User Fugitive if s:buffer().type('file', 'blob') | exe "command! -buffer -bar -bang -range=0 -nargs=* Gblame :execute s:Blame(0,,,,[])" | endif diff --git a/ftdetect/fugitive.vim b/ftdetect/fugitive.vim new file mode 100644 index 0000000..d2bda26 --- /dev/null +++ b/ftdetect/fugitive.vim @@ -0,0 +1 @@ +autocmd BufReadPost *.fugitiveblame setfiletype fugitiveblame