Its pretty simple to do.
In Ubuntu 10.10 and similar simple add this 4 lines to /etc/vim/vimrc :
Open the file..
user@box:~$ sudo vi /etc/vim/vimrc
append these lines:
"--------Setting for 4 spaces TAB key------
set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
"---------End of setting -----------------
Save and restart Vim and it should work.
Nessun commento:
Posta un commento