ctrlpvim / ctrlp.vim

Active fork of kien/ctrlp.vim—Fuzzy file, buffer, mru, tag, etc finder.
ctrlpvim.github.com/ctrlp.vim
Other
5.56k stars 259 forks source link

Question: How to open in new tab when pressing enter #519

Closed jrobinson52 closed 5 years ago

jrobinson52 commented 5 years ago

When a file is selected in the CtrlP finder pressing enter opens the file in the current window. How do I make it open in a new tab instead?

Thanks

tacahiroy commented 5 years ago

You can configure that with a variable g:ctrlp_prompt_mappings like this:

let g:ctrlp_prompt_mappings = {
    \ 'AcceptSelection("e")': ['<C-e>'],
    \ 'AcceptSelection("t")': ['<Cr>'],
}

See h: g:ctrlp_prompt_mappings for details.

jrobinson52 commented 5 years ago

Thanks so much!