vimctrlp

How can I search a fuzzy order in CtrlP


In other editors like sublime, if I search for usermodel it will match the path of models/users.ex, however in CtrlP if I do the same query it will fail. I have to remember to search the path modeluser to make the match.

Is there a way to tweak this so that usermodel or user model would match? I've read the docs and don't see a way but i'm new to it and am not sure if i'm just missing something.


Solution

  • AFAIK CtrlP can't do it but you can try writing your custom matcher (see an example here).

    There is also Unite with similar functionality which allows to separate multiple patterns with space to narrow down the candidates. This way user model will match anything containing these two words in any order.