X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=vim%2F.vim%2Fplugin%2Fggrep.vim;h=26f3d17524fd7f1926f98847c82558f542d0c68a;hb=9cbfa59ca421fac5422cbf0c2c52f48f8f2adb4c;hp=7b52921113ff525e61bca15bf3c45828d7fa4f9a;hpb=50295e8d1d1b2ab4d5514d441ba28e45e7699c55;p=dotfiles.git diff --git a/vim/.vim/plugin/ggrep.vim b/vim/.vim/plugin/ggrep.vim index 7b52921..26f3d17 100644 --- a/vim/.vim/plugin/ggrep.vim +++ b/vim/.vim/plugin/ggrep.vim @@ -1,11 +1,6 @@ -if exists("g:loaded_mein_ggrep") | finish | endif -let g:loaded_mein_ggrep = 1 +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() +}