Adding the faster indexing to ctrl-p
This commit is contained in:
parent
2c3a7b662b
commit
33fbfa8bc2
1 changed files with 14 additions and 3 deletions
17
vimrc
17
vimrc
|
|
@ -159,9 +159,6 @@ endif
|
||||||
" Supertab
|
" Supertab
|
||||||
" let g:SuperTabDefaultCompletionType="context"
|
" let g:SuperTabDefaultCompletionType="context"
|
||||||
|
|
||||||
" CtrlP
|
|
||||||
nnoremap <leader>b :CtrlPBuffer<cr>
|
|
||||||
|
|
||||||
" open the current file for edit in Perforce
|
" open the current file for edit in Perforce
|
||||||
nnoremap <leader>4 :! p4 edit %<cr>
|
nnoremap <leader>4 :! p4 edit %<cr>
|
||||||
|
|
||||||
|
|
@ -173,3 +170,17 @@ nnoremap <leader>a :Ack<space>
|
||||||
|
|
||||||
" Clam
|
" Clam
|
||||||
nnoremap ! :Clam<space>
|
nnoremap ! :Clam<space>
|
||||||
|
|
||||||
|
" CtrlP
|
||||||
|
nnoremap <leader>b :CtrlPBuffer<cr>
|
||||||
|
" Set the max files
|
||||||
|
let g:ctrlp_max_files = 10000
|
||||||
|
" Optimize file searching
|
||||||
|
if has("unix")
|
||||||
|
let g:ctrlp_user_command = {
|
||||||
|
\ 'types': {
|
||||||
|
\ 1: ['.git/', 'cd %s && git ls-files']
|
||||||
|
\ },
|
||||||
|
\ 'fallback': 'find %s -type f | head -' . g:ctrlp_max_files
|
||||||
|
\ }
|
||||||
|
endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue