Vim CtrlP Plugin: Manually set root search directory?

Viewed 14335

I have read through the docs but cannot figure out if this is possible.

I want to keep the default setting of g:ctrlp_working_path_mode = 2, but I want the ability to manually override that for all buffers in the current window if I want.

Specifically, I want to issue a ctrlp command or change a ctrlp config variable that sets the root search directory, such that is uses that directory for all future searches, regardless of which buffer I'm in.

Bonus Question: Is it possible to set two root directories, so that it searches both of them and combines the results?

Thanks!

4 Answers
Related