title: Using git commit -a with vim
body: <p>I'm new with git, so I decided to learn git using the tutorials of github. The third chapter said: </p>
  
  <blockquote>
    <p>"For this first example we’ll modify the README file to add ourselves as an author on the project. So we simply edit the file. Now we want to commit that change, so we run the <code>git commit -a</code> command."</p>
  </blockquote>
  
  <p>When I use the <code>git commit -a</code> command, the console opens a vim and I wrote my message, but I don't know how to close this vim editor from the console. How do I save the message and close vim?</p>