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>
This commit is contained in:
parent
a87fe8cd36
commit
98e5bd8198
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user