You can figure out where the relevant options were set with
:verbose set smartindent? ai? indentexpr?
There is not much point in scrutinizing the vimrc file if the options are set somewhere else. (I had a quick look: Line 28 is the part that interests me the most.) BTW, I hope you mean
~/.vim/indent/ and not