Most of the time I'd like
noexpandtab on because our corporate formatting uses tabs instead of spaces, so in my
.vimrc I have this:
" Set tab width stuff set tabstop=4 softtabstop=0 noexpandtab shiftwidth=4
What is annoying though is when I am writing my git commit messages and tabs come in, I'd like those to be spaces. I know I could just do
:set expandtab when I'm writing a commit message but it seems annoying to do every time. Surely there is a better way?
For what it's worth I'm running vim through git bash in Git for Windows.