From d0212919f35a8137b78a4f5df168dfb47ba50d28 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 7 Jul 2019 14:26:03 -0400 Subject: [PATCH] Only map q if no conflict --- autoload/fugitive.vim | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 661f68e..0a7faf0 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -138,6 +138,8 @@ function! s:executable(binary) abort return s:executables[a:binary] endfunction +let s:nowait = v:version >= 704 ? '' : '' + function! s:map(mode, lhs, rhs, ...) abort let flags = (a:0 ? a:1 : '') . (a:rhs =~# '' ? '' : '