There was a problem with the editor vi

I don’t recall the circumstances that lead to the issue but anytime I tried to open vim for git I received:

“There was a problem with the editor vi”

The solution:

  git config --global core.editor /usr/local/bin/vim