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:
parent
af3f06ca21
commit
2e81b02efa
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user