If I do a git commit, when Vim opens, I want to be in insert mode straight away.
git commit
I noticed that the filetype is set to gitcommit w
filetype
gitcommit
An alternate approach:
export GIT_EDITOR='vim +startinsert'
or add ! in the end to start from the end of message (useful, when using git hooks for message completion)
!
export GIT_EDITOR='vim +startinsert!'