Find vim on the path

If vim is on the path, it will be used instead of `/usr/bin/vim`.

Closes Homebrew/homebrew#29885.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
James Wald 2014-06-04 13:29:00 -10:00 committed by Jack Nagel
parent a87fe8cd36
commit 98e5bd8198

View File

@ -190,7 +190,9 @@ def which_editor
return 'mate' if which "mate"
# Find BBEdit / TextWrangler
return 'edit' if which "edit"
# Default to vim
# Find vim
return 'vim' if which "vim"
# Default to standard vim
return '/usr/bin/vim'
end