vim change use spaces for tabs 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
" Vi:
" To replace tabs with spaces whilst typing
set tabstop=4 shiftwidth=4 expandtab
set tabstop=4