how to change tab to 4 spaces in vim code example
Example 1: vim replace tabs with spaces
" Vi:
" To replace tabs with spaces whilst typing
set tabstop=4 shiftwidth=4 expandtab
Example 2: linux vim set tab to 4 spaces
set tabstop=4
Example 3: linux vim set tab to 4 spaces
set ts=4 sw=4
Example 4: linux vim set tab to 4 spaces
syntax enable