Use space instead of Tab in vim

Use the following settings in ~/.vimrc file:

set expandtab " use space instead of tab
set tabstop=4 " set tab width to 4 spaces
set shiftwidth=4 " auto indented with the reindent operations

Leave a Reply

Your email address will not be published. Required fields are marked *