ctrlp.vim
ctrlp.vim copied to clipboard
Support Vim 8.0 feature to avoid vim getting stuck.
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.
This project is unmaintained, You should use this instead. https://github.com/ctrlpvim/ctrlp.vim
To @bdfish's point, see https://github.com/ctrlpvim/ctrlp.vim/issues/349. It's still not possible unfortunately.