]> git.rmz.io Git - dotfiles.git/commitdiff
vim: use ag for file_rec unite source
authorSamir Benmendil <samir.benmendil@gmail.com>
Wed, 22 Apr 2015 14:01:42 +0000 (15:01 +0100)
committerSamir Benmendil <samir.benmendil@gmail.com>
Wed, 22 Apr 2015 17:53:02 +0000 (18:53 +0100)
vim/vimrc

index 79e7b718496bd49a18950e784a76ea9f9647dc45..18cfd6ce5a0eb7030579c7fee7d2c0189e267840 100644 (file)
--- 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] <Nop>
 nmap <leader>u [unite]
-nnoremap <silent> [unite]f :<C-u>Unite -start-insert file_rec<CR>
+nnoremap <silent> [unite]f :<C-u>Unite -start-insert file_rec/async<CR>
 nnoremap <silent> [unite]a :<C-u>Unite grep -input=\12\17<CR>
 
 " yankring {{{2