Added filetype fix to allow vim to be used for git/hg commits. Otherwised vim exists with status 1.