Add commit mode

It's a small thing, but makes my life slightly happier.

It's targeted at git, but I suspect it could be easily adapted to
writing commit messages for other VCSes too.