1

If I want to create a new file config/initializers/NEW_FILE.rb under CTRLP,

I need to type the full path, how could I use the fuzzy search function to auto-complete the config/initializers/ in the typing area.

That is, I can type cfg/ini_ then I can type some key to auto complete config/initializers/

enter image description here

newBike
  • 14,385
  • 29
  • 109
  • 192

2 Answers2

1

I know you didn't ask for that but you could do the following without CtrlP:

:e co*/in*<Tab>NEW_FILE.rb<CR>

You'll need longest in the values of wildmode, though:

set wildmode=longest
romainl
  • 186,200
  • 21
  • 280
  • 313
0

CtrlP will autocomplete the current path segment when you hit the <Tab> key.

rounce
  • 366
  • 4
  • 15