Git commit messages lost by vi
问题 I'm a clumsy typist, and I don't use vi/vim very often, but I do use it for commit messages. However, if you type a wrong command while editing a commit message ( :Wq , say, instead of :wq ), when you correctly close out the commit message in vim with :wq or :x , you get this: error: There was a problem with the editor 'vi'. Please supply the message using either -m or -F option. Normally, a wrong command like :W is no problem—vim just ignores it and you can keep on working with the file and