From 5cea916e9cb0c2270bbbfd6ce6d9ffd5887e8de6 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 26 Jul 2018 20:54:10 -0400 Subject: [PATCH] Support Vim without SourceCmd --- plugin/fugitive.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index d85bfcd..1b31a36 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -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