X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=vim%2F.vim%2Fplugin%2Fggrep.vim;h=7b52921113ff525e61bca15bf3c45828d7fa4f9a;hb=HEAD;hp=8a9bd8a5b70db4d8247446d045cf6b150be78747;hpb=c87a6c5de579ab6ae0e5d27b233b83bab85e17f6;p=dotfiles.git diff --git a/vim/.vim/plugin/ggrep.vim b/vim/.vim/plugin/ggrep.vim index 8a9bd8a..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() +}