Looks lika a misbehaving sript.
In the problem buffer (if and when the error reappears):
:verbose setlocal cindent? cinoptions? indentexpr?
- 'cinoptions' influences how 'cindent' works
- if 'indentexpr' is nonempty, it overrules 'cindent'.
":verbose" will tell you where each of these options was last set.
It just happened again right now. So here is the result of your
suggested command:
cindent
Last set from /usr/share/vim/vim70/indent/c.vim
cinoptions=
indentexpr=GetTexIndent()
Last set from ~/shared_home/vim/plugin/indent/tex.vim
So I suppose it might be tex.vim screwing things up there ?