X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/8bd148c792c06fb41c01cc798bc3b194e237a603..ccfca081bc71456eb4eef5dcb9b70487ec9ec335:/vim/vimrc diff --git a/vim/vimrc b/vim/vimrc index 79e7b71..18cfd6c 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -520,6 +520,8 @@ call unite#custom#profile('default', 'context', { " seems not respected let g:unite_source_grep_max_candidates = 2000 if executable('ag') + " Use ag in unite rec source + let g:unite_source_rec_async_command = 'ag --follow --nocolor --nogroup --hidden -g ""' " Use ag in unite grep source. let g:unite_source_grep_command = 'ag' let g:unite_source_grep_default_opts = '--smart-case -w --vimgrep --hidden --ignore ''.hg'' --ignore ''.svn'' --ignore ''.git'' --ignore ''.bzr''' @@ -528,7 +530,7 @@ end nnoremap [unite] nmap u [unite] -nnoremap [unite]f :Unite -start-insert file_rec +nnoremap [unite]f :Unite -start-insert file_rec/async nnoremap [unite]a :Unite grep -input= " yankring {{{2