在Mac上,可能之前重装vim变动了一些设置,所以才会有这个错误,导致git不能提交。
查了后解决方案很简单,直接输入:
git config --global core.editor $(which vim)