X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=vim%2F.vim%2Fplugin%2Fggrep.vim;h=26f3d17524fd7f1926f98847c82558f542d0c68a;hb=9cbfa59ca421fac5422cbf0c2c52f48f8f2adb4c;hp=4c71b70ec798fe3d103bcd551ac349007476b39b;hpb=1280549be01e3ce72d9e0aeef6254a1ff14a25a3;p=dotfiles.git diff --git a/vim/.vim/plugin/ggrep.vim b/vim/.vim/plugin/ggrep.vim index 4c71b70..26f3d17 100644 --- a/vim/.vim/plugin/ggrep.vim +++ b/vim/.vim/plugin/ggrep.vim @@ -1,10 +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! - let g:pylint_disable=1 -endfunction - -command! -nargs=* -complete=file Vmg call s:Vmg() +}