]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/plugin/grep.vim
python#importcompl#all works with LSP
[dotfiles.git] / vim / .vim / plugin / grep.vim
index 7154d2d44cbf8f0cdc45d602563fa440c3ca18e4..140f8fcf89578b58521fc83a23bdbbee0b74059d 100644 (file)
@@ -1,10 +1,10 @@
+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>)