vimvim-pluginctrlp

How to set default search as file search for Vim plugin CtrlP?


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 ?


Solution

  • Add let g:ctrlp_by_filename=1 to your vimrc

    Full documentation Here