Friday, February 1, 2013

How to setup your indent spacing on Mac iTerm2

To change your indent spacing on your Mac iTerm2, you just need to locate your vimrc file in your mac and usually, it is located on this path /usr/share/vim/vimrc.

Once you're able to locate your vimrc, you just need to add or update the settings of your tabstop, the value is equal to the number of spaces you want to set for your indent.

Please see sample below.

set tabstop=4 " a tab is four spaces

Hope this helps a lot coz it's good to have a standard indent for your programming.