How do I open ctrlp plugin file suggestions in Insert mode?

48 Views Asked by At

I'm using CtrlP plugin to switch to other files in Vim by pressing Ctrl-p. But this only works in normal mode. I want to trigger it by pressing the same set of keys in insert mode as well. How can I do that? I couldn't find any mapping for insert mode in the help doc.

1

There are 1 best solutions below

0
Kartik Chauhan On BEST ANSWER

Tried inoremap <C-p> <Esc>:CtrlP<CR> and it worked. Credit goes to @statox, who answered this question here