Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kien committed Sep 14, 2011
1 parent 1c7c0ff commit ba8cfd3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
18 changes: 10 additions & 8 deletions autoload/ctrlp.vim
Expand Up @@ -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()',
Expand All @@ -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
Expand Down Expand Up @@ -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
"}}}
Expand Down
12 changes: 3 additions & 9 deletions doc/ctrlp.txt
Expand Up @@ -208,8 +208,7 @@ the highlight group that’ll 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
<

Expand Down Expand Up @@ -354,19 +353,15 @@ Once inside the prompt:
<c-g>
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|.

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*
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ba8cfd3

Please sign in to comment.