I’ve noticed that CtrlP is consistently quite slow right after a file loads or when pulling up a new buffer. It happens each time I get the
<incrementing numbers> (press ctrl-c to abort)
message. Here’s a screenshot of what CtrlP looks like when it’s being slow. Once it loads the prt path <mru>={ ... etc part, it works lightning-quick.
I’m using a fairly unmodified version of MacVim with Janus. I’m just curious about what’s going on there. I would assume that the numbers are the catalog of files CtrlP is indexing. Does it re-index at each window/buffer?
That’s the number of files indexed. The index is rebuilt every time you run
:CtrlPin an “uncached” directory.You shouldn’t do
:CtrlPin your home directory as it’s sure to be very large: indexing it will take a lot of time and will, for the most part, be useless.Read the documentation for how to set caching options:
:help ctrlp-options.is a good start.