Hacker News new | ask | show | jobs
by notJim 5158 days ago
When you start vim again and hit ctrl+p, does it do all that over again?
2 comments

If I don't quit vim, and do Ctrl+P, things got cached (which you force-refresh with F5) so it's instant.

If I quit and restart vim, the Ctrl-P cache is invalidated thus it's scanning again, but it's down to 3~5s since disk reads got cached by the OS.

Yes. But you can specify a local cache file if you want... in which case it would not start over when you restart.
Ah, I see. I added a similar feature to Command-T, because scanning one of my projects trees takes a couple seconds.