1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 20:00:05 +08:00
This commit is contained in:
wsdjeg 2017-03-31 20:11:00 +08:00
parent 692871bdc0
commit 92d965158b

View File

@ -192,60 +192,42 @@ let g:unite_source_grep_max_candidates = get(g:,
if executable('hw') if executable('hw')
" Use hw (highway) " Use hw (highway)
" https://github.com/tkengo/highway " https://github.com/tkengo/highway
let g:unite_source_grep_command = get(g:, 'unite_source_grep_command', 'hw') let g:unite_source_grep_command = 'hw'
let g:unite_source_grep_default_opts = get(g:, let g:unite_source_grep_default_opts = '--no-group --no-color'
\ 'unite_source_grep_default_opts', '--no-group --no-color') let g:unite_source_grep_recursive_opt = ''
let g:unite_source_grep_recursive_opt = get(g:,
\ 'unite_source_grep_recursive_opt', '')
elseif executable('ag') elseif executable('ag')
" Use ag (the silver searcher) " Use ag (the silver searcher)
" https://github.com/ggreer/the_silver_searcher " https://github.com/ggreer/the_silver_searcher
let g:unite_source_grep_command = get(g:, 'unite_source_grep_command', 'ag') let g:unite_source_grep_command = 'ag'
let g:unite_source_grep_default_opts = get(g:, let g:unite_source_grep_default_opts = '-i --line-numbers --nocolor --nogroup --hidden --ignore ' .
\ 'unite_source_grep_default_opts', \ '''.hg'' --ignore ''.svn'' --ignore ''.git'' --ignore ''.bzr'''
\ '-i --line-numbers --nocolor --nogroup --hidden --ignore ' . let g:unite_source_grep_recursive_opt = ''
\ '''.hg'' --ignore ''.svn'' --ignore ''.git'' --ignore ''.bzr''')
let g:unite_source_grep_recursive_opt = get(g:,
\ 'unite_source_grep_recursive_opt', '')
elseif executable('pt') elseif executable('pt')
" Use pt (the platinum searcher) " Use pt (the platinum searcher)
" https://github.com/monochromegane/the_platinum_searcher " https://github.com/monochromegane/the_platinum_searcher
let g:unite_source_grep_command = get(g:, 'unite_source_grep_command', 'pt') let g:unite_source_grep_command = 'pt'
let g:unite_source_grep_default_opts = get(g:, let g:unite_source_grep_default_opts = '--nogroup --nocolor'
\ 'unite_source_grep_default_opts', '--nogroup --nocolor') let g:unite_source_grep_recursive_opt = ''
let g:unite_source_grep_recursive_opt = get(g:,
\ 'unite_source_grep_recursive_opt', '')
elseif executable('ack-grep') elseif executable('ack-grep')
" Use ack " Use ack
" http://beyondgrep.com/ " http://beyondgrep.com/
let g:unite_source_grep_command = get(g:, let g:unite_source_grep_command = 'ack-grep'
\ 'unite_source_grep_command', 'ack-grep') let g:unite_source_grep_default_opts = '-i --no-heading --no-color -k -H'
let g:unite_source_grep_default_opts = get(g:, let g:unite_source_grep_recursive_opt = ''
\ 'unite_source_grep_default_opts',
\ '-i --no-heading --no-color -k -H')
let g:unite_source_grep_recursive_opt = get(g:,
\ 'unite_source_grep_recursive_opt', '')
elseif executable('ack') elseif executable('ack')
let g:unite_source_grep_command = get(g:, 'unite_source_grep_command', 'ack') let g:unite_source_grep_command = 'ack'
let g:unite_source_grep_default_opts = get(g:, let g:unite_source_grep_default_opts = '-i --no-heading --no-color -k -H'
\ 'unite_source_grep_default_opts', '-i --no-heading --no-color -k -H') let g:unite_source_grep_recursive_opt = ''
let g:unite_source_grep_recursive_opt = get(g:,
\ 'unite_source_grep_recursive_opt', '')
elseif executable('jvgrep') elseif executable('jvgrep')
" Use jvgrep " Use jvgrep
" https://github.com/mattn/jvgrep " https://github.com/mattn/jvgrep
let g:unite_source_grep_command = get(g:, let g:unite_source_grep_command = 'jvgrep'
\ 'unite_source_grep_command', 'jvgrep') let g:unite_source_grep_default_opts = '-i --exclude ''\.(git|svn|hg|bzr)'''
let g:unite_source_grep_default_opts = get(g:, let g:unite_source_grep_recursive_opt = '-R'
\ 'unite_source_grep_default_opts',
\ '-i --exclude ''\.(git|svn|hg|bzr)''')
let g:unite_source_grep_recursive_opt = get(g:,
\ 'unite_source_grep_recursive_opt', '-R')
elseif executable('beagrep') elseif executable('beagrep')
" Use beagrep " Use beagrep
" https://github.com/baohaojun/beagrep " https://github.com/baohaojun/beagrep
let g:unite_source_grep_command = get(g:, let g:unite_source_grep_command = 'beagrep'
\ 'unite_source_grep_command', 'beagrep')
endif endif
let g:unite_source_rec_async_command = get(g:, let g:unite_source_rec_async_command = get(g:,
\ 'unite_source_rec_async_command', \ 'unite_source_rec_async_command',