vim php indentation
Posted on 2004-04-28
This is admittedly a minor issue, but given how much time I spend using vim, I would very much appreciate an answer.
How can I set vim's indentation such that <?php and the corresponding ?> have the same indentation? Currently when I type ?> the indentation remains as great as the preceding line's indentation, rather than the indentation of <?php. I've tried cindent, autoindent, and even smartindent.
echo "username: " . $username . "<hr />";
echo "balance: " . $balance . " <hr />";