I know you can get pretty robust with the .vimrc config but I don't need much. The fact that I get some of this is plenty for me. So here is current .vimrc I use.
# vi ~/.vimrc syntax on set autoindent set ts=4 set number
syntax on: turns on syntax highlighting (works for quite a few file types and configs)
autoindent: indentation for the next line will be the same as the current line
ts=X: sets the number of spaces for your tab
number: adds line numbers to the editor