function rvg --wraps=rg --description 'ripvimgrep, a wrapper for ripgrep(1) to use vimgrep' if not command --query rg return 127 end command rg --vimgrep $argv end