ctrlpvim / ctrlp.vim

Active fork of kien/ctrlp.vim—Fuzzy file, buffer, mru, tag, etc finder.
ctrlpvim.github.com/ctrlp.vim
Other
5.55k stars 260 forks source link

Cannot invoke CtrlP with Remapped Key #614

Closed JerromyCh closed 1 year ago

JerromyCh commented 1 year ago

I am a beginner of Vim user. I pasted such commands into .vimrc to learn the configuration of Vim.

  let g:ctrlp_map =  '<c-p>'
  let g:ctrlp_cmd = 'CtrlP'

By using ":nmap", I can see the key binding as . However, I cannot invoke the CtrlP by pressing the "ctrl+p" key combo. Please guide me on this. Thanks!

JerromyCh commented 1 year ago

I have found the solution.

  let g:ctrlp_map =  '<c-p>'

Should be

  let g:ctrlp_map =  '<C-p>'

And I can invoke the CtrlP by pressing the "ctrl+p" key combo.

tacahiroy commented 1 year ago

Interesting, because CtrlP is successfully started in either way in my environment. But yes, you already resolved the issue, so that's ok though.