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
about C/C++, Java, Linux …
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