I want to use vim registers in CtrlP input form, like <C-r>"
.
<C-r>
is used by ToggleRegex()
by default.
So I configure CtrlP with g:ctrlp_prompt_mappings. like that,
let g:ctrlp_prompt_mappings = {
\ 'ToggleRegex()': ['<C-g>'],
\}
Then it seems to make effect, but error occur with pressing <C-r>
.
E21: Cannot make changes, 'modifiable' is off
How can I do that?
it looks like you need <c-\>
it opens a console dialog to paste <cword>
, <cfile>
, the content of the search register, the last visual selection, the clipboard or any register into the prompt.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With