]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/plugin/grep.vim
pylsp should use flake8's configuration
[dotfiles.git] / vim / .vim / plugin / grep.vim
index 7154d2d44cbf8f0cdc45d602563fa440c3ca18e4..03903d740903ffb8f6b5f710c7d0c90e4884383d 100644 (file)
@@ -1,9 +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
+    redraw!
     let g:pylint_disable=1
 endfunction