I'm using ctrlP plugin.
According to the ctrlp's doc I should be able to remap like this
let g:ctrlp_prompt_mappings = { 'PrtSelectMove("k")': ['<c-u>', '<up>'] }
let g:ctrlp_prompt_mappings = { 'PrtSelectMove("j")': ['<c-d>', '<down>'] }
let g:ctrlp_prompt_mappings = { 'PrtDelete()' : ['<c-k>', '<del>'] }
let g:ctrlp_prompt_mappings = { 'PrtExit()' : ['<c-l>', '<esc>'] }
But it doesn't work, I tried a few variations - still getting the same result.
I want to remap this four lines (from doc):
\ 'PrtDelete()': ['<del>'],
\ 'PrtSelectMove("j")': ['<c-j>', '<down>'],
\ 'PrtSelectMove("k")': ['<c-k>', '<up>'],
\ 'PrtExit()': ['<esc>', '<c-c>', '<c-g>'],
+++UPDATE+++
let g:ctrlp_prompt_mappings = {
\ 'PrtDelete()': ['<c-k>', '<del>'],
\ 'PrtExit()': ['<esc>', '<c-l>', '<c-g>'],
\ 'PrtSelectMove("k")': ['<c-u>', '<up>'],
\ 'PrtSelectMove("j")': ['<c-d>', '<down>'],
\}
Only <c-u>
does work. <c-k>, <c-l>, <c-d>
doesn't work.
when I do :echo g:ctrlp_prompt_mappings
{'PrtDelete()': ['<c-k>', '<del>'], 'PrtSelectMove("j")': ['<c-d>', '<down>'], 'PrtExit()': ['<esc>', '<c-l>', '<c-g>'], 'PrtSelectMove("k")': ['<c-u>', '<up>']}
+++UPDATE2+++
let g:ctrlp_prompt_mappings = {
\ 'PrtExit()': ['<c-l>', '<esc>'],
\ 'PrtSelectMove("k")': ['<c-u>', '<up>'],
\ 'PrtSelectMove("j")': ['<c-d>', '<down>'],
\ 'PrtBS()': ['<c-k>', '<bs>', '<c-]>'],
\ 'ToggleByFname()': [''],
\ 'PrtCurRight()': ['<right>'],
\}
everything works.
( <c-l>, <c-d>
) started working because I remove them from
\ 'ToggleByFname()': [''],
\ 'PrtCurRight()': ['<right>'],