update docs
This commit is contained in:
parent
1c7c0ffae7
commit
ba8cfd396d
@ -670,6 +670,12 @@ func! s:MapSpecs(...)
|
|||||||
cal remove(prtmaps, each)
|
cal remove(prtmaps, each)
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
if &term =~? 'xterm' || &term =~? '^vt'
|
||||||
|
nmap <buffer> <esc>[A <up>
|
||||||
|
nmap <buffer> <esc>[B <down>
|
||||||
|
nmap <buffer> <esc>[C <right>
|
||||||
|
nmap <buffer> <esc>[D <left>
|
||||||
|
endif
|
||||||
if exists('a:1') && a:1 == 'unmap'
|
if exists('a:1') && a:1 == 'unmap'
|
||||||
let prtunmaps = [
|
let prtunmaps = [
|
||||||
\ 'PrtBS()',
|
\ 'PrtBS()',
|
||||||
@ -686,11 +692,7 @@ func! s:MapSpecs(...)
|
|||||||
endfor | endfor
|
endfor | endfor
|
||||||
else
|
else
|
||||||
for each in keys(prtmaps) | for kp in prtmaps[each]
|
for each in keys(prtmaps) | for kp in prtmaps[each]
|
||||||
if kp == '<esc>' && ( &term =~? 'xterm' || &term =~? '^vt' )
|
|
||||||
" do nothing
|
|
||||||
else
|
|
||||||
exe 'nn <buffer> <silent>' kp ':cal <SID>'.each.'<cr>'
|
exe 'nn <buffer> <silent>' kp ':cal <SID>'.each.'<cr>'
|
||||||
endif
|
|
||||||
endfor | endfor
|
endfor | endfor
|
||||||
endif
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
@ -948,14 +950,14 @@ func! s:statusline(...)
|
|||||||
let byfname = '%#Character#\ '.byfname.'\ %*'
|
let byfname = '%#Character#\ '.byfname.'\ %*'
|
||||||
let item = '%#Character#\ '.item.'\ %*'
|
let item = '%#Character#\ '.item.'\ %*'
|
||||||
let slider = '\ <'.prev.'>={'.item.'}=<'.next.'>'
|
let slider = '\ <'.prev.'>={'.item.'}=<'.next.'>'
|
||||||
let dir = '\ %#LineNr#\ '.escape(getcwd(), ' =#(){}%\').'\ %*'
|
let dir = '\ %=%<%#LineNr#\ '.escape(getcwd(), ' =#(){}%\').'\ %*'
|
||||||
exe 'setl stl='.focus.byfname.regex.slider.dir
|
exe 'setl stl='.focus.byfname.regex.slider.dir
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! s:progress(len)
|
func! s:progress(len)
|
||||||
let dir = '%#LineNr#\ Scanning:\ '.escape(getcwd(), ' =#(){}%\').'\ %*'
|
|
||||||
let cnt = '%#Function#\ '.a:len.'\ %*'
|
let cnt = '%#Function#\ '.a:len.'\ %*'
|
||||||
exe 'setl stl='.dir.cnt
|
let dir = '\ %=%<%#LineNr#\ '.escape(getcwd(), ' =#(){}%\').'\ %*'
|
||||||
|
exe 'setl stl='.cnt.dir
|
||||||
redr
|
redr
|
||||||
endfunc
|
endfunc
|
||||||
"}}}
|
"}}}
|
||||||
|
@ -208,8 +208,7 @@ the highlight group that’ll be used: >
|
|||||||
<
|
<
|
||||||
|
|
||||||
*'g:ctrlp_max_files'*
|
*'g:ctrlp_max_files'*
|
||||||
The maximum number of files to scan, set this to a higher number if your hard
|
The maximum number of files to scan, set to 0 for no limit: >
|
||||||
drives are fast (SSDs, RAID 0, or both) and you work with large projects: >
|
|
||||||
let g:ctrlp_max_files = 20000
|
let g:ctrlp_max_files = 20000
|
||||||
<
|
<
|
||||||
|
|
||||||
@ -354,19 +353,15 @@ Once inside the prompt:
|
|||||||
<c-g>
|
<c-g>
|
||||||
Exit |CtrlP|.
|
Exit |CtrlP|.
|
||||||
|
|
||||||
Note: The <esc> (also <c-[>) mapping isn’t available in terminal. Use <c-c>
|
|
||||||
or <c-g> to exit |CtrlP| instead.
|
|
||||||
http://linux.die.net/man/4/console_codes
|
|
||||||
|
|
||||||
Chose your own mappings with |g:ctrlp_prompt_mappings|.
|
Chose your own mappings with |g:ctrlp_prompt_mappings|.
|
||||||
|
|
||||||
When inside the match window (press <tab> to switch to):
|
When inside the match window (press <tab> to switch):
|
||||||
|
|
||||||
a-z
|
a-z
|
||||||
0-9
|
0-9
|
||||||
~^-=;`',.+!@#$%&_(){}[]
|
~^-=;`',.+!@#$%&_(){}[]
|
||||||
Cycle through the lines with the first letter (paths or filenames) that
|
Cycle through the lines with the first letter (paths or filenames) that
|
||||||
match that character.
|
matches that key.
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
5. Input Formats *ctrlp-input-formats*
|
5. Input Formats *ctrlp-input-formats*
|
||||||
@ -409,7 +404,6 @@ Mercurial repository: https://bitbucket.org/kien/ctrlp.vim
|
|||||||
===============================================================================
|
===============================================================================
|
||||||
CHANGELOG
|
CHANGELOG
|
||||||
|
|
||||||
+ Remove <esc> mapping in term.
|
|
||||||
+ New option: |g:ctrlp_max_files|
|
+ New option: |g:ctrlp_max_files|
|
||||||
|
|
||||||
Before 2011/09/12
|
Before 2011/09/12
|
||||||
|
Loading…
x
Reference in New Issue
Block a user