identing in vim
there is, as the linked article notes, confusion when it comes to vim and tabstop, shiftwidth, expandtab and alike. this clears that up very nicely.
http://vimcasts.org/episodes/tabs-and-spaces/
it’s got a nice video tutorial and a useful script for your vimrc.
btw.: credits for the script go to too much php