Open baruchel opened 9 years ago
I reread the help and noticed that the MRU mode uses another variable. It seems t work now with:
let g:ctrlp_mruf_exclude = '/tmp/.*'
Best regards.
Hey! please note that this a unmaintained repo and maintained fork is at https://github.com/ctrlpvim/ctrlp.vim
Hi, I can't make the option
ctrlp_custom_ignore
work. Since several issues on Github or Stackoverflow were about that, let me tell that I read all their answers carefully, read also the whole help, browsed the web, and spent hours trying to make it work without success. Here are some details:a) I wan't all files with a path beginning with
/tmp/
to be discarded (because currently 60% of ctrlp suggestions are my sent mail from my mail agent).b) I don't use
ctrlp_user_command
at all. I finally added the following lines in my ~/.vimrcin order to be sure, but I am absolutely certain that even before that
ctrlp_user_command
wasn't used.c) Each time I try a new regexp for
ctrlp_custom_ignore
, I close all my running Vim sessions, have a check withps ax | grep vim
then delete by hand the cache folder withrm -Rf ~/.cache/ctrlp
. Then I write a mail (with my mail agent launching vim for editing some /tmp/pico.XXXX file); then I start a new vim session, hit Ctrl-P and... see my recently /tmp/pico.XXXX filed) My Vim is compiled with
wildignore
; I tried to achieve the same result withwildignore
(though I would really like rather usingctrlp_custom_ignore
) but I had no success with it either.e) I tried many syntax for the regexp like:
but no change could be noticed.
f) My current configuration for ctrlp is:
Am I missing something? Is
ctrlp_custom_ignore
incompatible withCtrlPMRU
?