]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/plugin/ggrep.vim
Move to vim9script
[dotfiles.git] / vim / .vim / plugin / ggrep.vim
index e2f43fbec8a7e28980424c413b9b9dff370c676e..26f3d17524fd7f1926f98847c82558f542d0c68a 100644 (file)
@@ -1,9 +1,6 @@
-if exists("*<SID>Vmg") | finish | endif
+vim9script
 
-function! s:Vmg(pattern)
-    silent execute 'Ggrep "' . a:pattern . '"'
+command! -nargs=* -complete=file Vmg {
+    silent execute "Ggrep \"" .. <q-args> .. '"'
     copen
-    redraw!
-endfunction
-
-command! -nargs=* -complete=file Vmg call s:Vmg(<q-args>)
+}