:set expandtab
"Inserting spaces with pressing tab key. If you want to input a real Tab key with this option
" Press Ctrl-V<Tab>
:set tabstop=4
" Setting the amount of spaces for the a tab hit. Here 4 space characters per tab
:set shiftwidth=4
"The number of space characters inserted for indentation when press tab.