X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=vim%2F.vim%2Fplugin%2Fgrep.vim;h=333a9d7214553fb08eddadc4d179876ec88ccc41;hb=9cbfa59ca421fac5422cbf0c2c52f48f8f2adb4c;hp=03903d740903ffb8f6b5f710c7d0c90e4884383d;hpb=1280549be01e3ce72d9e0aeef6254a1ff14a25a3;p=dotfiles.git diff --git a/vim/.vim/plugin/grep.vim b/vim/.vim/plugin/grep.vim index 03903d7..333a9d7 100644 --- a/vim/.vim/plugin/grep.vim +++ b/vim/.vim/plugin/grep.vim @@ -1,11 +1,8 @@ -if exists("*Vim") | finish | endif +vim9script -function! s:Vim(pattern) +command! -nargs=* -complete=file Vim { set grepprg=grep\ -Rns\ --binary-files=without-match\ --exclude-dir=.git\ --exclude-dir=.tags\ $*\ /dev/null\ . - execute "silent grep \"" . a:pattern . "\"" + execute "silent grep \"" .. .. "\"" copen redraw! - let g:pylint_disable=1 -endfunction - -command! -nargs=* -complete=file Vim call s:Vim() +}