Tab size in vi

Posted on 2007-05-19

I use 4 spaces for tabs but the default vi (aka vim) in Debian Etch uses 8 spaces. To make it default to 4, create a .vimrc file in your home directory with the line:
:set tabstop=4

Tags: tabs tabsize tabstops vi vim