Skip to content

Commit

Permalink
Merge pull request kien#63 from ctrlpvim/plug-map
Browse files Browse the repository at this point in the history
Add <plug>(ctrlp)
  • Loading branch information
mattn committed Dec 2, 2014
2 parents 4277ef8 + db3e8b1 commit f7953b4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugin/ctrlp.vim
Expand Up @@ -33,8 +33,10 @@ com! -bar CtrlPCurWD cal ctrlp#init(0, { 'mode': '' })
com! -bar CtrlPCurFile cal ctrlp#init(0, { 'mode': 'c' })
com! -bar CtrlPRoot cal ctrlp#init(0, { 'mode': 'r' })

if g:ctrlp_map != '' && !hasmapto(':<c-u>'.g:ctrlp_cmd.'<cr>', 'n')
exe 'nn <silent>' g:ctrlp_map ':<c-u>'.g:ctrlp_cmd.'<cr>'
exe 'nn <silent> <plug>(ctrlp) :<c-u>'.g:ctrlp_cmd.'<cr>'

if g:ctrlp_map != '' && !hasmapto('<plug>(ctrlp)')
exe 'map' g:ctrlp_map '<plug>(ctrlp)'
en

cal ctrlp#mrufiles#init()
Expand Down

0 comments on commit f7953b4

Please sign in to comment.