ctrlp.vim
ctrlp.vim copied to clipboard
Is it possible to have ctrlp open files in a new tab upon <CR>, instead of <c-t>?
Sorry if opening an issue isn't the right way of asking such questions. Feel free to close this and direct me to the proper forum if so.
In your .vimrc
let g:ctrlp_prompt_mappings = {
\ 'AcceptSelection("e")': ['<2-LeftMouse>'],
\ 'AcceptSelection("t")': ['<cr>'],
\ }
Don't omit the "e" line to make sure you "unbind"
beforehand.
Follow-up question: This configuration opens a new tab page - even when firing up a fresh vim which leaves the initial unnamed buffer in its dedicated tab. Is there a way to automatically close this buffer in this scenario?