From 83619a037bc58a1bcb3094945a6223865a9f84d3 Mon Sep 17 00:00:00 2001 From: Luiz Ribeiro Date: Sat, 7 Mar 2015 19:54:37 -0500 Subject: [PATCH] Allow disabling of maps through g:no_plugin_maps --- plugin/bclose.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/bclose.vim b/plugin/bclose.vim index 0d0187d..7ad3987 100644 --- a/plugin/bclose.vim +++ b/plugin/bclose.vim @@ -70,4 +70,6 @@ function! s:Bclose(bang, buffer) execute wcurrent.'wincmd w' endfunction command! -bang -complete=buffer -nargs=? Bclose call Bclose('', '') -nnoremap bd :Bclose +if !g:no_plugin_maps + nnoremap bd :Bclose +endif