title: How do I exit Vim when doing a Mercurial commit at the command line?
body: <p>I'm on a Mac running OS&nbsp;X&nbsp;v10.6 (Snow&nbsp;Leopard). I have Mercurial 1.1 installed.</p>
  
  <p>After I hit <kbd>Esc</kbd> to exit insert mode I can't figure out how to save and quit. Hitting <kbd>Ctrl</kbd> + <kbd>C</kbd> shows me instructions that say typing "quit" will write and quit, but it doesn't seem to work.</p>