Fix error if g:no_plugin_maps is not defined

Remapping if g:no_plugin_maps is undefined or if it is false
This commit is contained in:
Rasmus Bang Grouleff 2018-04-12 12:52:02 +02:00
parent af3f06ca21
commit 2e81b02efa

View File

@ -70,6 +70,6 @@ function! s:Bclose(bang, buffer)
execute wcurrent.'wincmd w' execute wcurrent.'wincmd w'
endfunction endfunction
command! -bang -complete=buffer -nargs=? Bclose call <SID>Bclose('<bang>', '<args>') command! -bang -complete=buffer -nargs=? Bclose call <SID>Bclose('<bang>', '<args>')
if !g:no_plugin_maps if !exists ("g:no_plugin_maps") || !g:no_plugin_maps
nnoremap <silent> <Leader>bd :Bclose<CR> nnoremap <silent> <Leader>bd :Bclose<CR>
endif endif