From b8364709e78c163c1e0a588fdbc32a1aaf3dc161 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 31 Dec 2018 00:06:47 -0500 Subject: [PATCH] Refer :Gstatus p users to P --- autoload/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index c23fdc2..3ee18d3 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1489,8 +1489,8 @@ function! fugitive#BufReadStatus() abort nnoremap ds :execute StageDiff('Gsdiff') nnoremap dp :execute StageDiffEdit() nnoremap dv :execute StageDiff('Gvdiff') - nnoremap p :execute StagePatch(line('.'),line('.')+v:count1-1) - xnoremap p :execute StagePatch(line("'<"),line("'>")) + nnoremap p :echoerr 'Use P' + xnoremap p :echoerr 'Use P' nnoremap P :execute StagePatch(line('.'),line('.')+v:count1-1) xnoremap P :execute StagePatch(line("'<"),line("'>")) nnoremap q :if bufnr('$') == 1quitelsebdeleteendif