Amir Hossein Hormati wrote: [...]
I think I figured it out. One of my plugins was messing with the cindent. I removed my vim plugins one by one. After removing "tex indenting" plugin, everything works perfectly. This is strange!Thanks Amir
A plugin should always use ":setlocal", never ":set", to avoid messing with the settings for files other than the current one (when editing in split-window mode). Similarly ":map <buffer>" etc.
see
:help :set
:help :setlocal
Best regards,
Tony.
