Implement a first-cut at "vim priority"

This adds some code that looks for a sequence of vim/vi providers and
picks the first one found as the choice used by local/bin/v, $EDITOR,
$VISUAL, etc.