how to set tab to 4 spaces in vim code example
Example 1: linux vim set tab to 4 spaces
set tabstop=4
Example 2: vim tab 2 spaces
set smartindent
set tabstop=2
set expandtab
set shiftwidth=2
set tabstop=4
set smartindent
set tabstop=2
set expandtab
set shiftwidth=2