6 ms·
i had trouble with CtrlP initialy because the initial load time is too slow. However, this config line fix it for me let g:ctrlp_user_command = ['.git', 'cd
by dqminh 14y ago
i had trouble with CtrlP initialy because the initial load time is too slow. However, this config line fix it for me
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files']
It lets CtrlP use git to list files, which is much faster for large project
- georgebashi 14y agoI've tweaked mine to this, which includes untracked files, but honours your gitignores: let g:ctrlp_user_command = ['.git/', 'cd %s && git ls-files --exclude-standard -co'] It was annoying me that I couldn't open files I'd just created with CtrlP, as they wern't yet tracked.
- robbles 14y agoJust tried this out on my setup, and it made a huge difference. A large project that used to take ~1s to load the first time is now pretty much instantaneous.