From 8157efff49151d583e6a706280b3f276ed82653f Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 25 Mar 2022 18:07:25 -0400 Subject: [PATCH] Provide g:fugitive_defer_to_existing_maps References: https://github.com/tpope/vim-fugitive/issues/1425 --- autoload/fugitive.vim | 4 ++-- plugin/fugitive.vim | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index d420ed3..9d0a3ea 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -208,7 +208,7 @@ let s:nowait = v:version >= 704 ? '' : '' function! s:Map(mode, lhs, rhs, ...) abort let maps = [] - let unique = a:0 && a:1 =~# '' + let defer = a:0 && a:1 =~# '' || get(g:, 'fugitive_defer_to_existing_maps') let flags = substitute(a:0 ? a:1 : '', '', '', '') . (a:rhs =~# '' ? '' : '