-if exists("*<SID>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 \"" .. <q-args> .. "\""
copen
redraw!
- let g:pylint_disable=1
-endfunction
-
-command! -nargs=* -complete=file Vim call s:Vim(<q-args>)
+}