How do I save my changes and exit Vim?
git, github, vim
Solution
To write and quit in Vim:
- Press escape.
- Type ":x".
- Press enter.
Follow this with `git push`.
Problem
I am trying to post a commit to my forked repository. I have gotten to the point where I have to enter a commit message. Vim appears, I typed in the message that I would like to be displayed but I don't know where to go from there. Do I save the message then push? If so, how would I go about doing that? I looked up Vim commands for saving, but they appear be characters rather than commands. Help is always appreciated.