]> Sergey Matveev's repositories - dotfiles.git/blob - vim/.vim/plugin/grep.vim
Have not used zshfe for years
[dotfiles.git] / vim / .vim / plugin / grep.vim
1 if exists("*<SID>Vim") | finish | endif
2
3 function! s:Vim(pattern)
4     set grepprg=grep\ -Rns\ --binary-files=without-match\ --exclude-dir=.git\ --exclude-dir=.tags\ $*\ /dev/null\ .
5     execute "silent grep \"" . a:pattern . "\""
6     copen
7     redraw!
8 endfunction
9
10 command! -nargs=* -complete=file Vim call s:Vim(<q-args>)