X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=vim%2F.vim%2Fplugin%2Fggrep.vim;h=e2f43fbec8a7e28980424c413b9b9dff370c676e;hb=HEAD;hp=657e7ea7267d7236a3cfa173cd2ad563d3b37acb;hpb=47f7d2b5f4a10a65950b0e3d5b07694bb2ce5dfa;p=dotfiles.git diff --git a/vim/.vim/plugin/ggrep.vim b/vim/.vim/plugin/ggrep.vim index 657e7ea..26f3d17 100644 --- a/vim/.vim/plugin/ggrep.vim +++ b/vim/.vim/plugin/ggrep.vim @@ -1,8 +1,6 @@ -function! s:Vmg(pattern) - silent execute 'Ggrep "' . a:pattern . '"' - copen - redraw! - let g:pylint_disable=1 -endfunction +vim9script -command! -nargs=* -complete=file Vmg call s:Vmg() +command! -nargs=* -complete=file Vmg { + silent execute "Ggrep \"" .. .. '"' + copen +}