Last Updated: February 25, 2016
· luxflux

Vim: Extract Issue Id from Branch Name in Commit Message

If you prefix your git branch name with an issue id (from Redmine, Github, ...). You can extract this id in your commit message using this short snippet.

Just write your commit message and write REFS or FIXES to trigger the macro.