How to map <c-leader> in vim?
2 answers
There are two problems here:
You have not read the CTRL documentation, wherever you find it:
Use this option to change the mapping to invoke CtrlP in Normal mode: let g:ctrlp_map = '<cp>'
<leader>
should be a cross-platform alternative to using common modifier keys (Alt, Ctrl, Shift, Cmd) in mappings.Usually, instead of
<Ctrl>
use<leader>
, as in:nnoremap <leader>p :CtrlP<CR>
This line in your ~/.vimrc
will probably solve your problem:
let g:crtlp_map='<F11>'
Although this does not help, here are my mappings for CtrlP:
nnoremap <leader>f :CtrlP<CR> nnoremap <leader>b :CtrlPBuffer<CR> nnoremap <leader>m :CtrlPMRUFiles<CR> nnoremap <leader>t :CtrlPTag<CR>
+6