From a5a75aca924a1f3a424709aadfa96ab56e300fa4 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 16 May 2018 00:28:17 -0400 Subject: [PATCH] Bring back :Gstatus C with a warning --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 8bc21c2..334812d 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2636,7 +2636,7 @@ function! s:BufReadIndex() abort xnoremap - :silent execute StageToggle(line("'<"),line("'>")) nnoremap a :let b:fugitive_display_format += 1exe BufReadIndex() nnoremap i :let b:fugitive_display_format -= 1exe BufReadIndex() - nnoremap C :echoerr 'Use cc instead' + nnoremap C :Gcommit:echohl WarningMsgecho ':Gstatus C is deprecated in favor of cc'echohl NONE nnoremap cA :Gcommit --amend --reuse-message=HEAD nnoremap ca :Gcommit --amend nnoremap cc :Gcommit