I don't know what "right indentation after ending a line" or "correct indentation when I use =" means. It would help to see examples of what you do, what you expect, and what you see instead.
–
garyjohnAug 27 '11 at 16:31

What settings are you using to enable indentation for PHP/HTML/JavaScript files? ":filetype indent on" in your ~/.vimrc is probably the optimal method, and it works fine for me.
–
HeptiteAug 28 '11 at 0:39

my indentKeys was set to empty string. I've removed lines where it was set that way.
–
shevskiOct 8 '11 at 18:38