Skip to content

Commit

Permalink
Merge pull request #806 from zhlinh/windows_uses_ag_first
Browse files Browse the repository at this point in the history
Use ag firstly for ctrlp in Windows too
  • Loading branch information
spf13 committed Aug 3, 2015
2 parents 4f64f56 + 1df9d65 commit 34de0e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -608,15 +608,15 @@
\ 'dir': '\.git$\|\.hg$\|\.svn$',
\ 'file': '\.exe$\|\.so$\|\.dll$\|\.pyc$' }

" On Windows use "dir" as fallback command.
if WINDOWS()
let s:ctrlp_fallback = 'dir %s /-n /b /s /a-d'
elseif executable('ag')
if executable('ag')
let s:ctrlp_fallback = 'ag %s --nocolor -l -g ""'
elseif executable('ack-grep')
let s:ctrlp_fallback = 'ack-grep %s --nocolor -f'
elseif executable('ack')
let s:ctrlp_fallback = 'ack %s --nocolor -f'
" On Windows use "dir" as fallback command.
elseif WINDOWS()
let s:ctrlp_fallback = 'dir %s /-n /b /s /a-d'
else
let s:ctrlp_fallback = 'find %s -type f'
endif
Expand Down

0 comments on commit 34de0e0

Please sign in to comment.