I have modified my prepare-commit-msg
hook to include the branch name at the beginning of my commit message (e.g. [JCH-234] -
). However, when I run git commit
the cursor is located at the beginning of the editor Vim
. I'm looking for a way to start the cursor at the location following my branch name.
I'm aware that it's only a few extra key strokes to move the cursor however, I believe in attention to detail and would like to implement this if possible.