linux vim set tab to 4 spaces

Shell
set ts=4 sw=4
set tabstop=4
syntax enable

Source

Also in Shell: