From 4dd41688cface81188fd67922533aa7aeddff191 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 1 Jan 2016 16:55:17 -0500 Subject: [PATCH] Entertain P as a p alternative in :Gstatus This could potentially free up `p` as "open in new tab", which would correspond nicely with `vim -p`. --- plugin/fugitive.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 046bd17..39545dd 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2547,6 +2547,8 @@ function! s:BufReadIndex() abort nnoremap dv :execute StageDiff('Gvdiff') nnoremap p :execute StagePatch(line('.'),line('.')+v:count1-1) xnoremap p :execute StagePatch(line("'<"),line("'>")) + nnoremap P :execute StagePatch(line('.'),line('.')+v:count1-1) + xnoremap P :execute StagePatch(line("'<"),line("'>")) nnoremap q :if bufnr('$') == 1quitelsebdeleteendif nnoremap r :edit nnoremap R :edit