CtrlP is a great plugin, but still not so perfect (comparing to similar function in IDEs or Emacs):
Vim always get unresponsive for a very noticable time when I'm opening CtrlP.
It would be very nice if CtrlP can refresh in background when I am using Vim 8.
Possible solution 1: Incremental Collecting in a timer.
Divide the whole file collecting job into pieces, and put them in timers (eg, a 20Hz interval), analyse fixed amount of files in an interval than refresh the ctrlp incrementally (just like similar plugins in emacs/IDE).
Possible solution 2: Collecting the files on background jobs .
Collecting all the files in a background job and output to a temporary file. And analyse/display them step by step in a timer.
Possible solution 3: Collecting the files on a python thread.
CtrlP will work perfectly in Vim 8 just like Emacs/IDEs.
CtrlP is a great plugin, but still not so perfect (comparing to similar function in IDEs or Emacs): Vim always get unresponsive for a very noticable time when I'm opening CtrlP.
It would be very nice if CtrlP can refresh in background when I am using Vim 8.
Possible solution 1: Incremental Collecting in a timer.
Divide the whole file collecting job into pieces, and put them in timers (eg, a 20Hz interval), analyse fixed amount of files in an interval than refresh the ctrlp incrementally (just like similar plugins in emacs/IDE).
Possible solution 2: Collecting the files on background jobs .
Collecting all the files in a background job and output to a temporary file. And analyse/display them step by step in a timer.
Possible solution 3: Collecting the files on a python thread.
CtrlP will work perfectly in Vim 8 just like Emacs/IDEs.