Default behavior for arg_map
This commit is contained in:
parent
d4e658caa9
commit
9f5e949d66
@ -1471,6 +1471,8 @@ fu! s:choices(str, choices, func, args)
|
||||
elsei char =~# "\\v\<Esc>|\<C-c>|\<C-g>|\<C-u>|\<C-w>|\<C-[>"
|
||||
cal s:BuildPrompt(0)
|
||||
retu 'cancel'
|
||||
elsei char =~# "\<CR>" && a:args != []
|
||||
retu a:args[0]
|
||||
en
|
||||
retu call(a:func, a:args)
|
||||
endf
|
||||
|
@ -313,6 +313,8 @@ Pressing <c-o> or <c-y> will then prompt for a keypress. The key can be:
|
||||
v - open in vertical split(s)
|
||||
r - open in current window (for <c-y> only)
|
||||
<esc>, <c-c>, <c-g> - cancel and go back to the prompt.
|
||||
<cr> - use the default behavior specified with |g:ctrlp_open_new_file| and
|
||||
|g:ctrlp_open_multiple_files|.
|
||||
|
||||
*'g:ctrlp_follow_symlinks'*
|
||||
Set this to 1 to follow symbolic links when listing files: >
|
||||
|
Loading…
x
Reference in New Issue
Block a user