$HOME/.vimrc:

set tabstop=2
set expandtab
set shuftwidth=2