X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=vim%2F.vim%2Fplugin%2Fggrep.vim;fp=vim%2F.vim%2Fplugin%2Fggrep.vim;h=26f3d17524fd7f1926f98847c82558f542d0c68a;hb=9cbfa59ca421fac5422cbf0c2c52f48f8f2adb4c;hp=e2f43fbec8a7e28980424c413b9b9dff370c676e;hpb=e21853080f5005ad6c6b548146d339abd197f28e;p=dotfiles.git diff --git a/vim/.vim/plugin/ggrep.vim b/vim/.vim/plugin/ggrep.vim index e2f43fb..26f3d17 100644 --- a/vim/.vim/plugin/ggrep.vim +++ b/vim/.vim/plugin/ggrep.vim @@ -1,9 +1,6 @@ -if exists("*Vmg") | finish | endif +vim9script -function! s:Vmg(pattern) - silent execute 'Ggrep "' . a:pattern . '"' +command! -nargs=* -complete=file Vmg { + silent execute "Ggrep \"" .. .. '"' copen - redraw! -endfunction - -command! -nargs=* -complete=file Vmg call s:Vmg() +}