Fix ""error: There was a problem with the editor 'vi'" error for Git in Mac OSX
You need to specify vim as git editor by running below command
git config --global core.editor /usr/bin/vim
Or, you can directly add one line in file ~/gitconfig:
[core]
editor=/user/bin/vim
Reference: http://tooky.co.uk/there-was-a-problem-with-the-editor-vi-git-on-mac-os-x/
Written by Morgan Cheng
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#