kien / ctrlp.vim

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

Open files with <c-o> and <c-x> #650

Open GordianDziwis opened 9 years ago

GordianDziwis commented 9 years ago

Hi,

with ctrlp open:

<c-o>v opens in vertical split <c-o>h opens in horizontal split

<c-v> opens in vertical split <c-x> opens in horizontal split <c-h> does nothing

Would not "<c-h> opens in horizontal split" be more consistent?

Cheers

Gordian

dominik-filip commented 9 years ago

I think it would. That's why I recommend:

let g:ctrlp_prompt_mappings = { 
    \ 'AcceptSelection("h")': ['<c-h>'],
    \ 'PrtCurLeft(): ['<c-x>'],
    \  }

Note that by default is mapped to 'PrtCurLeft()', same as .