Vi Error while making git commit

Viewed 1009

I am attempting to make a git commit. I run the command git commit and vim opens up. I type in my commit message, and when I execute the :wq command, I get the following error:

error: There was a problem with the editor 'vi'. Please supply the message using either -m or -F option.

Any idea how I can figure out what the problem is?

2 Answers
Related