From 2e81b02efa52bea3088881233120c4335ae27826 Mon Sep 17 00:00:00 2001 From: Rasmus Bang Grouleff Date: Thu, 12 Apr 2018 12:52:02 +0200 Subject: [PATCH] Fix error if g:no_plugin_maps is not defined Remapping if g:no_plugin_maps is undefined or if it is false --- plugin/bclose.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/bclose.vim b/plugin/bclose.vim index 7ad3987..18f3d73 100644 --- a/plugin/bclose.vim +++ b/plugin/bclose.vim @@ -70,6 +70,6 @@ function! s:Bclose(bang, buffer) execute wcurrent.'wincmd w' endfunction command! -bang -complete=buffer -nargs=? Bclose call Bclose('', '') -if !g:no_plugin_maps +if !exists ("g:no_plugin_maps") || !g:no_plugin_maps nnoremap bd :Bclose endif