I have found a lot of pages with config examples such as:
let g:unite_source_grep_command = 'ag'
let g:unite_source_grep_default_opts =
\ '--line-numbers --nocolor --nogroup --hidden --ignore '
let g:unite_source_grep_recursive_opt = ''
or
" Use ag for searching
let g:unite_source_rec_async_command =
\ 'ag --follow --nocolor --nogroup --hidden -g ""'
let g:ackprg = 'ag --nogroup --column'
nnoremap <space>/ :Unite grep:.<cr>
Unfortunately, I don't really understand what these are doing or why. What I've played around with it some and have gotten parts of what I want working.
Ideally, I'd just like something similar to what Ack.vim does:
- I hit some key mapping, let's say /
- I put in my search query
- That opens a Unite.vim buffer split at the top which asynchronously uses ack or ag to searches for my search query
- I can navigate through results and select one or some to open in splits