I've been using vim and gVim for over a year. I use it mainly for editing of HTML, PHP, Python and Javascript.
Every time I've tried to set some automatic type of indentation I've got into troubles. Now I just use autoindent. I use it both at home in Windows 7 and at work in Linux.
Things I'm missing is:
- Right indentation after ending a line
- correct indentation when I use
=.
I've tried to install many of the gvim plugins and I still get no practical results. I set syntax and smartindent or cindent, also filetypeplugin (I can post my .vimrc if needed).
The PHP is less of a worry to me, my main issue is indenting HTML and Javascript (e.g. jQuery).

indentKeyswas set to empty string. I've removed lines where it was set that way. – shevski Oct 8 '11 at 18:38