]> git.rmz.io Git - dotfiles.git/blobdiff - vim/vimrc
vim: add Ag command
[dotfiles.git] / 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>
+command! -nargs=1 Ag Unite grep -input=<args>
 
 " unite-file_rec {{{3
 if executable('ag')