提醒:修正 Vim(Mac) 有时无法正确提交 Git Commit Message 的问题 2011年04月09日

来自: Verdana DevNotes
演示:以MSN订阅提醒为例 订阅到哪吒,有更新提醒我
哪吒机器人提醒:
提醒: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)
收藏 |  评论 |  推荐给好友  | 
本文共有 0 次分享
评论
共有 - 条评论


我要反馈