Support Vim without SourceCmd

This commit is contained in:
Tim Pope 2018-07-26 20:54:10 -04:00
parent c3c39d904b
commit 5cea916e9c

View File

@ -201,7 +201,9 @@ augroup fugitive
autocmd BufWriteCmd fugitive://*//[0-3]/* exe fugitive#BufWriteCmd()
autocmd FileReadCmd fugitive://*//* exe fugitive#FileReadCmd()
autocmd FileWriteCmd fugitive://*//[0-3]/* exe fugitive#FileWriteCmd()
autocmd SourceCmd fugitive://*//* nested exe fugitive#SourceCmd()
if exists('##SourceCmd')
autocmd SourceCmd fugitive://*//* nested exe fugitive#SourceCmd()
endif
autocmd User Flags call Hoist('buffer', function('FugitiveStatusline'))
augroup END