Skip to content

Commit 34de0e0

Browse files
committed
Merge pull request spf13#806 from zhlinh/windows_uses_ag_first
Use ag firstly for ctrlp in Windows too
2 parents 4f64f56 + 1df9d65 commit 34de0e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.vimrc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -608,15 +608,15 @@
608608
\ 'dir': '\.git$\|\.hg$\|\.svn$',
609609
\ 'file': '\.exe$\|\.so$\|\.dll$\|\.pyc$' }
610610

611-
" On Windows use "dir" as fallback command.
612-
if WINDOWS()
613-
let s:ctrlp_fallback = 'dir %s /-n /b /s /a-d'
614-
elseif executable('ag')
611+
if executable('ag')
615612
let s:ctrlp_fallback = 'ag %s --nocolor -l -g ""'
616613
elseif executable('ack-grep')
617614
let s:ctrlp_fallback = 'ack-grep %s --nocolor -f'
618615
elseif executable('ack')
619616
let s:ctrlp_fallback = 'ack %s --nocolor -f'
617+
" On Windows use "dir" as fallback command.
618+
elseif WINDOWS()
619+
let s:ctrlp_fallback = 'dir %s /-n /b /s /a-d'
620620
else
621621
let s:ctrlp_fallback = 'find %s -type f'
622622
endif

0 commit comments

Comments
 (0)