The newer versions of git ( >= 1.7.x I believe) have support for using templates in commit messages which is a really handy feature. They are made even moreso by using template tokens in conjunction with ... power of Vim echoes through the valley. So lets take a second to see how we can get this magic working.
I dev using Scrum so it's broken down into stories which have tasks so my template looks like this.PlainS<Story#>:T<Task#>:<Message>
Really simple, you can put anything inside the tags you want.
Down to business. You've just typed git commit and you're in a vim buffer, what do you do now?
Yes, yes it is. So this is what we're going to do: we're going to pour on some more vim awesomesauce with a keyboard mapping:Plain " Place in your vimrc " <leader> is usually \ if you haven't set it nm <leader>T f<ca<<CR>
Now all you have to do is \T and steps 1 and 2 are taken care of it for you so it now looks like this: