I have come across the awesome ctrlp.vim plugin. It is a good alternative to the Command-T plugin which I have used before. What I did not like about Command-T is that it would take about 20-30 seconds to rescan files when it is invoked for the first time after starting vim.
CtrlP works a lot faster but it does not seem to automatically rescan for newly created files. How should I trigger a rescan manually?
Thanks!
From the documentation:
<F5>
- Refresh the match window and purge the cache for the current directory.
- Remove deleted files from MRU list.
This assumes you're in ctrl-p mode already. Note that you can hit F5 in the middle of a query, i.e., you can type a few characters, find it's not matching a recently updated file, and hit F5 to refresh right then. It will automatically show you the match if the file was just added to the ctrl-p cache.