X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=vim%2F.vim%2Fplugin%2Fgrep.vim;h=03903d740903ffb8f6b5f710c7d0c90e4884383d;hb=73a099ef9d2d01a75c13dee7efce9ece5f99dc74;hp=834390a786ae2f80a39b7b5a69d73918a6532f2c;hpb=c87a6c5de579ab6ae0e5d27b233b83bab85e17f6;p=dotfiles.git diff --git a/vim/.vim/plugin/grep.vim b/vim/.vim/plugin/grep.vim index 834390a..03903d7 100644 --- a/vim/.vim/plugin/grep.vim +++ b/vim/.vim/plugin/grep.vim @@ -1,11 +1,10 @@ -if exists('*Vim') | finish | endif +if exists("*Vim") | finish | endif function! s:Vim(pattern) - let ignorecase_bak=&ignorecase - set noignorecase - execute "vimgrep /" . a:pattern . "/ **/*" + set grepprg=grep\ -Rns\ --binary-files=without-match\ --exclude-dir=.git\ --exclude-dir=.tags\ $*\ /dev/null\ . + execute "silent grep \"" . a:pattern . "\"" copen - let &ignorecase=ignorecase_bak + redraw! let g:pylint_disable=1 endfunction