put this in your ~/.vimrc:
set ts=4
set sw=4

ts is the tabstop, and will make the tab character render as 4 spaces.
sw is the shiftwidth, and will affect vim's indenting (using the >>/<<
commands or the autoindent feature), and make default indentation
changes be 4 spaces (or one tabstop).

On Mon, Jan 11, 2010 at 06:42:05AM -0800, Jeremy Leonard wrote:
> I'm trying to figure out how to change the number of characters that
> bash and vi uses when displaying tabs in a file.  It seems like the
> default is 8 and I would like to change this to 4.  I think I'm either
> looking in the wrong places or I'm blind ... any help would be greatly
> appreciated.  Thanks.

> -- 
> You received this message because you are subscribed to the Linux Users Group.
> To post a message, send email to [email protected]
> To unsubscribe, send email to [email protected]
> For more options, visit our group at 
> http://groups.google.com/group/linuxusersgroup

-- 
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup

Reply via email to