newBike
newBike

Reputation: 15002

How to autocomplete in CtrlP search bar?

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

Upvotes: 1

Views: 594

Answers (2)

rounce
rounce

Reputation: 364

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

Upvotes: 0

romainl
romainl

Reputation: 196546

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

Upvotes: 1

Related Questions