Allow disabling of maps through g:no_plugin_maps

This commit is contained in:
Luiz Ribeiro 2015-03-07 19:54:37 -05:00
parent dd6926acd0
commit 83619a037b

View File

@ -70,4 +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>')
nnoremap <silent> <Leader>bd :Bclose<CR> if !g:no_plugin_maps
nnoremap <silent> <Leader>bd :Bclose<CR>
endif