Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,4 @@ at once with a single press of <kbd>c-@</kbd>.

* Fix rendering bug that causes the ctrlp pane to consume the entire window in
some cases (sporadic).
* Support a custom mapping instead of <kbd>c-@</kbd>.
* Write documentation for Vim
3 changes: 2 additions & 1 deletion autoload/ctrlp_bdelete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ function! ctrlp_bdelete#mappings(...)
call call(s:ctrlp_bdelete_user_func, a:000)
endif

nnoremap <buffer> <silent> <c-@> :call <sid>DeleteMarkedBuffers()<cr>
let bdelete_keymap_trigger = get(g:, 'ctrlp_bdelete_keymap_trigger', '<c-@>')
exec 'nnoremap <buffer> <silent> ' . bdelete_keymap_trigger . ' :call <sid>DeleteMarkedBuffers()<cr>'
endfunction

function! s:DeleteMarkedBuffers()
Expand Down