aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJames Wald2014-06-04 13:29:00 -1000
committerJack Nagel2014-06-05 23:56:52 -0500
commit98e5bd8198cc3ac42173eb755b0780e477e36a1c (patch)
tree61f1e92b725bd965785d0003e5575cef6a3d8fce /Library
parenta87fe8cd3640bb5733295890980ccbae6873c444 (diff)
downloadbrew-98e5bd8198cc3ac42173eb755b0780e477e36a1c.tar.bz2
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>
Diffstat (limited to 'Library')
-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