]> git.rmz.io Git - dotfiles.git/commitdiff
vim: add Ag command
authorSamir Benmendil <me@rmz.io>
Tue, 28 Jul 2015 09:24:22 +0000 (10:24 +0100)
committerSamir Benmendil <me@rmz.io>
Tue, 28 Jul 2015 09:24:22 +0000 (10:24 +0100)
may need some work

vim/vimrc

index ae76bc81b176a38e199929eaf303ce40971f8243..f02ff6d5cf68e27f9f4026e8a6e7cc6a4001a383 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -541,6 +541,7 @@ if executable('ag')
     let g:unite_source_grep_recursive_opt = ''
 end
 nnoremap <silent> [unite]a :<C-u>Unite grep -input=\12\17<CR>
     let g:unite_source_grep_recursive_opt = ''
 end
 nnoremap <silent> [unite]a :<C-u>Unite grep -input=\12\17<CR>
+command! -nargs=1 Ag Unite grep -input=<args>
 
 " unite-file_rec {{{3
 if executable('ag')
 
 " unite-file_rec {{{3
 if executable('ag')