projects
/
dotfiles.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db70245
)
External (GNU) grep is much faster
author
Sergey Matveev <stargrave@stargrave.org>
Fri, 25 Jun 2021 15:37:18 +0000 (18:37 +0300)
committer
Sergey Matveev <stargrave@stargrave.org>
Fri, 25 Jun 2021 16:00:16 +0000 (19:00 +0300)
vim/.vim/plugin/grep.vim
patch
|
blob
|
history
diff --git
a/vim/.vim/plugin/grep.vim
b/vim/.vim/plugin/grep.vim
index 834390a786ae2f80a39b7b5a69d73918a6532f2c..f7a5f126d6e75f8eeadd34aabe30a9f2040af1ce 100644
(file)
--- a/
vim/.vim/plugin/grep.vim
+++ b/
vim/.vim/plugin/grep.vim
@@
-1,11
+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