10. November 2006
Usually, I think there are better ways to write code today but often vim is simply useful because you are on an ssh connection or in a virtual environment or whatever.
Anyway, to get the IMHO quite cool auto-indent feature when pressing
“Tab” like emacs does, simply put this in your .vimrc:
Of course you can read more about the vim indenting feature in the documentation. Of course, I think most of you will know that already, so this entry is more a reminder for me.
[EDIT] uws remindend me, that the first three lines were missing. Seems the default on my system already included them. Thanks!