Skip to content
Snippets Groups Projects
Commit 98e5bd81 authored by James Wald's avatar James Wald Committed by Jack Nagel
Browse files

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: default avatarJack Nagel <jacknagel@gmail.com>
parent a87fe8cd
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment