Use CtrlP on custom root directories
Is there a way to do this? for example, I want CtrlP to source only files in /var/www/myproject/bla/bla/theme, whereas the .git directory is located in /var/www/myproject.
I know there's a script called local_vimrc, in which I can define various customizations to the original vimrc. Maybe in the local file I can somehow define that ctrlp will only source files from this directory?
The only other option I can think of, which is a poor-man-solution, is faking a .git directory in the directory.
You can use :CtrlP /var/www/myproject/bla/bla/theme.
How would you do :CtrlP /var/www/myproject/bla/bla/theme in .vimrc?
You could do something like
noremap <C-P> <Esc>:CtrlP /var/www/myproject/bla/bla/theme<CR>
Yeah I figured I could do that, but I meant how do I set that root directory manually in the .vimrc so that it uses that root every time instead of just when I manually invoke the CtrlP command.