Vi/Vim has to be the best text editor in the world. I wouldn't know what to do without it. Here is a copy of my .vimrc file just in case anyone wants to have something useful in regards to tabs, spacing, auto-indents and line numbers:
set nu
set expandtab
set tabstop=2
set shiftwidth=2
set autoindent
set smartindent