In relation to this question: Auto indent turns off itself automatically on php files
Vim has a php auto indent script; it behaves in following way: When
autoindent is ON - if you open a php script, it disables default
autoindent and uses its own logic. But I noticed that if the php file contains html this script stops working.
Can you confirm that this is indeed so? Is there any way to fix this?