0

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.

Kartik Chauhan
  • 2,779
  • 5
  • 28
  • 39

1 Answers1

0

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

Kartik Chauhan
  • 2,779
  • 5
  • 28
  • 39