When you press tab in vim, you normally get a tab character inserted in your text.
You can turn this off via
set expandtab. When you press tab now, you get spaces.
To alter how many spaces you get on tab press, issue
Finally, to alter how to spaces you get when you indent text with