]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/plugin/grep.vim
Relative path to zshfe.zsh
[dotfiles.git] / vim / .vim / plugin / grep.vim
index 834390a786ae2f80a39b7b5a69d73918a6532f2c..140f8fcf89578b58521fc83a23bdbbee0b74059d 100644 (file)
@@ -1,12 +1,10 @@
-if exists('*<SID>Vim') | finish | endif
+if exists("*<SID>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
-    let g:pylint_disable=1
+    redraw!
 endfunction
 
 command! -nargs=* -complete=file Vim call s:Vim(<q-args>)