Use space characters in place of tabs:
:set expandtab
Set tab size to equal 4 spaces:
:set tabstop=4
:set shiftwidth=4
Or as a one-liner:
:set tabstop=4 shiftwidth=4 expandtab
After changing the tab settings run this to change the file to use the new settings:
:retab
No comments:
Post a Comment