Less wide Tabs in VIM
To use less space in vim I decided to go with only two spaces for each tab stop. This also improves readability in my eyes. I set the following in my .vimrc
which I found here:
set tabstop=4 " The number of spaces count for a TAB.
set softtabstop=2 " The number of spaces inserted when typing TAB. If not expandtab, type TAB twice, will get one TAB.
set shiftwidth=2 " The number of spaces when auto-indent.
set expandtab " Use the spaces only.
set smarttab " Insert appropriate spaces in front of line according to shiftwidth, tabstop, softtabstop.
set autoindent
set smartindent