aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJames Wald2014-06-04 13:29:00 -1000
committerJack Nagel2014-06-05 23:56:52 -0500
commite9c59fd52a3f081489eb5a6256e4011cc658d735 (patch)
treec757cfad36639bdf97d3349759187245cb8178d8 /Library/Homebrew
parent5a98c361b24bd069edd95b29e03f02e989aca985 (diff)
downloadhomebrew-e9c59fd52a3f081489eb5a6256e4011cc658d735.tar.bz2
Find vim on the path
If vim is on the path, it will be used instead of `/usr/bin/vim`. Closes #29885. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/utils.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 36b30d857..bb8b6d281 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -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