哪吒机器人提醒:

提醒:Verdana DevNotes
【标题】修正 Vim(Mac) 有时无法正确提交 Git Commit Message 的问题
【摘要】和 subversion 一样,git 也可以为 commit message 设置一个默认的编辑器,命令如下:1$ git config --global core.editor vim不过我在 mac os x 系统使用 git 的过程中,偶尔会遇到如下的情况:1234567*** commands *** 1: status 2: update 3: revert 4: add untracked 5: patch 6: diff 7: quit 8: helpwhat now> qbye.error: there was a problem with the editor 'vim'.please supply the message using either -m or -f option.这种情况基本上都是出现在我打错字的时候,开始以为是输入法引起的 vim 状态异常,不过出现的次数多了才慢慢发现一个规律——如果在 vim 中编辑文本时因为按键失误出现类似这样:e492: not an editor command… 的错误信... (04-09 22:42)