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.
1 Answer
From the Wikipedia article on "Tab key":
5In 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.