#!/usr/bin/env sh
# SPDX-License-Identifier: MIT
# ──────────────────────────────────────────────────────────────────────────────
# $source: cappysan-dotfile-scripts$
# ──────────────────────────────────────────────────────────────────────────────
#
# NAME
#      git-vim - grep for a file, and open it in vim
#
# SEE ALSO
#      git(1), vim(1)
#
exec vim $(git grep --color=never "${@}" | cut -d: -f1 | sort -u | xargs)
