Supplying the -f (run in foreground) flag fixed it for me. I suspect that this is because the VIM error code is not being returned to git, but it works nonetheless.
$ git config --global core.editor /usr/bin/vim -f
本文介绍如何通过vim-f解决git配置中的错误,并详细解释了配置全局编辑器时遇到的VIM错误代码问题。
Supplying the -f (run in foreground) flag fixed it for me. I suspect that this is because the VIM error code is not being returned to git, but it works nonetheless.
$ git config --global core.editor /usr/bin/vim -f

被折叠的 条评论
为什么被折叠?