#!/bin/sh

cmd=$(command -v "$1")
test -n "$cmd" && exec vim "$cmd" || exec vi "$cmd"
