aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
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