3

I'm using CtrlP plugin for my vim for fuzzy file search. I generally work on a large Symfony project & searching is very inefficient & slow but I figured that if I press <c-d> after <c-p> it searches by file name than file path which is way faster & what I want.

I'm not able to figure out how to set it as a default search mode when i hit <c-p> & it's not in their do either.

Can someone help me in this ?

Rahul Gupta
  • 393
  • 3
  • 18

1 Answers1

3

Add let g:ctrlp_by_filename=1 to your vimrc

Full documentation Here

Rahul Gupta
  • 393
  • 3
  • 18