When I open vim, open ctrlp and select multiple files I get desired behaviour of showing one file, with the remainder in hidden buffers. However if, while a file is already open, I try to open multiple files, a vertical split is created, which I don't want.
If I use this setting:
let g:ctrlp_open_multiple_files = '1i'
It opens all buffers as hidden, which is ok but I'd rather if one of the new buffers was displayed. This also has the problem that it leaves open an empty buffer if there were no files open.
Is there a way to get the behaviour of " g:ctrlp_open_multiple_files = '1' " when there are no files open, but prevent vertical splits when there is already a file open, and also switch to one of the newly opened buffers?
I have the following setting in .vimrc
let g:ctrlp_open_multiple_files = '1'
When I open vim, open ctrlp and select multiple files I get desired behaviour of showing one file, with the remainder in hidden buffers. However if, while a file is already open, I try to open multiple files, a vertical split is created, which I don't want.
If I use this setting:
let g:ctrlp_open_multiple_files = '1i'
It opens all buffers as hidden, which is ok but I'd rather if one of the new buffers was displayed. This also has the problem that it leaves open an empty buffer if there were no files open.
Is there a way to get the behaviour of " g:ctrlp_open_multiple_files = '1' " when there are no files open, but prevent vertical splits when there is already a file open, and also switch to one of the newly opened buffers?