mirror of
https://github.com/spf13/spf13-vim.git
synced 2024-09-21 07:27:11 +00:00
Merge pull request #806 from zhlinh/windows_uses_ag_first
Use ag firstly for ctrlp in Windows too
This commit is contained in:
commit
34de0e0a3d
8
.vimrc
8
.vimrc
@ -608,15 +608,15 @@
|
|||||||
\ 'dir': '\.git$\|\.hg$\|\.svn$',
|
\ 'dir': '\.git$\|\.hg$\|\.svn$',
|
||||||
\ 'file': '\.exe$\|\.so$\|\.dll$\|\.pyc$' }
|
\ 'file': '\.exe$\|\.so$\|\.dll$\|\.pyc$' }
|
||||||
|
|
||||||
" On Windows use "dir" as fallback command.
|
if executable('ag')
|
||||||
if WINDOWS()
|
|
||||||
let s:ctrlp_fallback = 'dir %s /-n /b /s /a-d'
|
|
||||||
elseif executable('ag')
|
|
||||||
let s:ctrlp_fallback = 'ag %s --nocolor -l -g ""'
|
let s:ctrlp_fallback = 'ag %s --nocolor -l -g ""'
|
||||||
elseif executable('ack-grep')
|
elseif executable('ack-grep')
|
||||||
let s:ctrlp_fallback = 'ack-grep %s --nocolor -f'
|
let s:ctrlp_fallback = 'ack-grep %s --nocolor -f'
|
||||||
elseif executable('ack')
|
elseif executable('ack')
|
||||||
let s:ctrlp_fallback = 'ack %s --nocolor -f'
|
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
|
else
|
||||||
let s:ctrlp_fallback = 'find %s -type f'
|
let s:ctrlp_fallback = 'find %s -type f'
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user