update docs

This commit is contained in:
Kien N 2011-09-14 20:09:09 +07:00
parent 1c7c0ffae7
commit ba8cfd396d
2 changed files with 13 additions and 17 deletions

View File

@ -670,6 +670,12 @@ func! s:MapSpecs(...)
cal remove(prtmaps, each)
endif
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'
let prtunmaps = [
\ 'PrtBS()',
@ -686,11 +692,7 @@ func! s:MapSpecs(...)
endfor | endfor
else
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>'
endif
exe 'nn <buffer> <silent>' kp ':cal <SID>'.each.'<cr>'
endfor | endfor
endif
endfunc
@ -948,14 +950,14 @@ func! s:statusline(...)
let byfname = '%#Character#\ '.byfname.'\ %*'
let item = '%#Character#\ '.item.'\ %*'
let slider = '\ <'.prev.'>={'.item.'}=<'.next.'>'
let dir = '\ %#LineNr#\ '.escape(getcwd(), ' =#(){}%\').'\ %*'
let dir = '\ %=%<%#LineNr#\ '.escape(getcwd(), ' =#(){}%\').'\ %*'
exe 'setl stl='.focus.byfname.regex.slider.dir
endfunc
func! s:progress(len)
let dir = '%#LineNr#\ Scanning:\ '.escape(getcwd(), ' =#(){}%\').'\ %*'
let cnt = '%#Function#\ '.a:len.'\ %*'
exe 'setl stl='.dir.cnt
let dir = '\ %=%<%#LineNr#\ '.escape(getcwd(), ' =#(){}%\').'\ %*'
exe 'setl stl='.cnt.dir
redr
endfunc
"}}}

View File

@ -208,8 +208,7 @@ the highlight group thatll be used: >
<
*'g:ctrlp_max_files'*
The maximum number of files to scan, set this to a higher number if your hard
drives are fast (SSDs, RAID 0, or both) and you work with large projects: >
The maximum number of files to scan, set to 0 for no limit: >
let g:ctrlp_max_files = 20000
<
@ -354,19 +353,15 @@ Once inside the prompt:
<c-g>
Exit |CtrlP|.
Note: The <esc> (also <c-[>) mapping isnt 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|.
When inside the match window (press <tab> to switch to):
When inside the match window (press <tab> to switch):
a-z
0-9
~^-=;`',.+!@#$%&_(){}[]
Cycle through the lines with the first letter (paths or filenames) that
match that character.
matches that key.
===============================================================================
5. Input Formats *ctrlp-input-formats*
@ -409,7 +404,6 @@ Mercurial repository: https://bitbucket.org/kien/ctrlp.vim
===============================================================================
CHANGELOG
+ Remove <esc> mapping in term.
+ New option: |g:ctrlp_max_files|
Before 2011/09/12