Open piyushrungta25 opened 4 years ago
Opening the selected file in a vertical split with <Cr>
can be achieved through the variable g:ctrlp_prompt_mappings
. However, if you configured like below, then <Cr>
opens the file to a vertical split at any time.
This mapping cannot be changed after CtrlP started.
Hi, I recently switched to CtrlP after using vim's inbuilt
find
for some time. I have below in my vimrcand looking to emulate something similar with CtrlP. I am looking for a way to do
<leader>v
, get the CtrlP prompt and when I do enter, it opens the selected file in a new vertical split. Similar with horizontal split and tab.I am trying to avoid doing
<c-v>
/<c-x>
after finding the match or first opening a split and then doing:CtrlP
in two separate commands.Let me know if it is possible currently. Thanks.