Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When I push tab in many applications like vim, OpenOffice etc., the tab size is equivalent to 8 spaces/characters.

This is the default for many applications. When the default terminal size is 80 chars horizontally, why is the tab size this big? After 5 tabs I am half way across the terminal, and text starts to look ugly, with text wrapping.

I was wondering what the history behind the decision for 8 chars tabs is.

I know how to change the settings in vim to make it 4 chars. I just want to understand why we still have 8 set as the default across so many applications.

share|improve this question

closed as not constructive by Diago, ChrisF, slhck, Simon Sheehan, Sathya Nov 10 '11 at 11:54

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

add comment

1 Answer 1

up vote 6 down vote accepted

From the Wikipedia article on "Tab key":

In practice, settable tab stops were rather quickly replaced with fixed tab stops, de facto standardized at every multiple of 8 characters horizontally, and every 6 lines vertically (typically one inch vertically). A printing program could easily send the necessary spaces or line feeds to move to any position wanted on a form, and this was far more reliable than the modal and non-standard methods of setting tab stops. Tab characters simply became a form of data compression.

It is unclear why the 8-character horizontal tab size was chosen, since 5 characters, a half inch in a typical printer at that time, was much more popular as a paragraph indentation.

share|improve this answer
    
Did not think it has some thing to do with an inch at all. –  nelaar Nov 10 '11 at 11:14
    
Why do we still keep that default. –  nelaar Nov 10 '11 at 11:14
2  
@nelaar: Historical precedent; there are a lot of text files written to depend on 8-column tabstops. But I (and a lot of other people) prefer spaces rather than tabs for indentation. In my .vimrc, I have set expandtab and set sw=4; I keep tapstops (ts) set to the default 8. I use Ctl-T and Ctrl-D for indentation. –  Keith Thompson Nov 10 '11 at 11:34
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.