1. Create .vimrc file on your home directory.
2. write these on .vimrc:
set shiftwidth=2
set tabstop=2
3. save file.
Explanations
1. shiftwidth: to control how many whitespace will be indented.
2. tabstop: to control how many whitespace a tab counts for.
Reference: http://tedlogan.com/techblog3.html
No comments:
Post a Comment