kien / ctrlp.vim

Fuzzy file, buffer, mru, tag, etc finder.
kien.github.com/ctrlp.vim
7.26k stars 676 forks source link

How to bind control+backspace? #733

Closed ecly closed 7 years ago

ecly commented 7 years ago

I'm trying to rebind the defaults for opening a selected file in a new split. In vim I normally define backspace as and it seems to be similar in ctrlp from what I read in

:h ctrlp_prompt_mappings

where <bs> is used. I've tried various variations but can't get it working with Control+Backspace.

Here's what I have right now, which works fine for my vertical splits but not horizontal.

let g:ctrlp_prompt_mappings = {
    \ 'AcceptSelection("e")': ['<c-bs>', '<2-LeftMouse>'],
    \ 'AcceptSelection("v")': ['<c-\>', '<RightMouse>'],
    \ }
ecly commented 7 years ago

Ah I'm sorry, this belongs in the maintained version. I'll move my issue there.