Tweaking ctrlp settings
This commit is contained in:
parent
a5d2e2adeb
commit
f8d0166333
1 changed files with 12 additions and 6 deletions
18
vim/vimrc
18
vim/vimrc
|
@ -217,10 +217,16 @@ function! s:VSetSearch()
|
|||
let @@ = temp
|
||||
endfunction
|
||||
|
||||
if executable('ag')
|
||||
let g:ctrlp_user_command = 'ag --ignore-case --nogroup --hidden --follow
|
||||
\ -U -p ~/.agignore
|
||||
\ -l -m 50000
|
||||
\ %s -g ""'
|
||||
endif
|
||||
" Ignore some folders and files for CtrlP indexing
|
||||
let g:ctrlp_custom_ignore = {
|
||||
\ 'dir': '\.git$\|\.yardoc\|public$|log\|tmp$',
|
||||
\ 'file': '\.so$\|\.dat$|\.DS_Store$'
|
||||
\ }
|
||||
|
||||
" if executable('ag')
|
||||
" let g:ctrlp_user_command = 'ag --ignore-case --nogroup --hidden --follow
|
||||
" \ -U -p ~/.agignore
|
||||
" \ -l -m 50000
|
||||
" \ %s -g ""'
|
||||
" endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue