vimctrlp

ctrlp : open selected file in the left vertical split


When using ctrlp, I can open a selected file in a new vertical split using ctlr-v

However, the new file open in the left split and the already opened one goes to the right split. I'd like the opposite to happen : opening the new file in the right split.

Workaround : Using ctrl-w + ctrl-r afer opening the file to invert splits


Solution

  • If you create the setting in your vimrc:

    set splitright
    

    it will open every file you open in a vertical split on the right side (not only CtrlP).