From 98e5bd8198cc3ac42173eb755b0780e477e36a1c Mon Sep 17 00:00:00 2001 From: James Wald Date: Wed, 4 Jun 2014 13:29:00 -1000 Subject: [PATCH] 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 --- Library/Homebrew/utils.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 36b30d857c..bb8b6d281b 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