From 8fcc5cb3496c1782511260062a7d46a79bb4757c Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 8 Jun 2010 11:08:05 -0400 Subject: [PATCH] Fix :Gblame with csh --- plugin/fugitive.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 4d56133..c6b5401 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1200,7 +1200,11 @@ function! s:Blame(bang,line1,line2,count,args) abort else let error = tempname() let temp = error.'.fugitiveblame' - silent! exe '%write !'.basecmd.' > '.temp.' 2> '.error + if &shell =~# 'csh' + silent! execute '%write !('.basecmd.' > '.temp.') >& '.error + else + silent! execute '%write !'.basecmd.' > '.temp.' 2> '.error + endif if v:shell_error call s:throw(join(readfile(error),"\n")) endif