Last Updated: February 25, 2016
·
553
· morgancheng

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/