I have problems configuring the vim plugin CtrlP
.
I usually work with files in 3 different directories say C:/A
,C:/B/D
,J:/A
When I start vim and try to find the file CtrlP
do not find any
So how can I say CtrlP to look in those directories first ? Secondely I'd like CtrlP to remember all the files I opened as I am likely to open them again how can I tell CtrlP to do this ?
Here is my config
"=============================
"=========== CTRLP ===========
"=============================
">>Use this option to change the mapping to invoke CtrlP in |Normal| mode
let g:ctrlp_map = '<c-p>'
">>Set the default opening command to use when pressing the above mapping
let g:ctrlp_cmd = 'CtrlP'
">>searching by filename (as opposed to full path)
let g:ctrlp_by_filename = 0 "in {0,1}
">>When opening a file, if it's already open in a window somewhere, CtrlP will try
" to jump to it instead of opening a new instance
let g:ctrlp_switch_buffer = 'E'
">>Set the directory to store the cache files
let g:ctrlp_cache_dir = 'C:/Travail/Tools/vim-7.4.020-python-2.7-python-3.3-windows-x86/bundle/ctrlp.vim-master/cacheFiles'
Bonus question: in this plugin, like in some others I'd like to mention $VIM
which for me is C:/Travail/Tools/vim-7.4.020-python-2.7-python-3.3-windows-x86
, but here it looks like CtrlP don't understand it how can I modify g:ctrlp_cache_dir
to use $VIM