Sunday, April 14, 2013

Re: How can one set tabstops to specific values?

On 14.04.13 03:24, Tony Mechelynck wrote:
> For the sake of portability, I recommend keeping 'tabstop' at its default of
> 8, setting 'expandtab' on, and using any values you like for 'shiftwidth'
> and 'softtabstop'. This way existing hard tabs will be seen at multiples of
> 8, no new ones will be added, and tabbing or indenting will happen by adding
> as many or as few spaces as you like. (You might also use :retab to get rid
> of existing hard tabs in favour of spaces.)

Using expandtab (and :retab when importing text, authored elsewhere)
I've used tabstop=3 shiftwidth=3 scrolloff=3 without any portability or
printing problems, in the last couple of decades of software
development, and all other text hacking.

Since there are no tab characters in the resulting text, the ancient
custom of tabstop=8 (which stems from clanking iron typewriters, IIRC),
isn't in play.

Erik

--
The New York Times has referred to Australia's gun laws as a "road map" for the
US, saying that "in the 18 years before the law, Australia suffered 13 mass
shootings - but not one in the 14 years after the law took full effect."
- http://www.abc.net.au/news/2012-12-17/us-urged-to-consider-australia-gun-laws-example/4431262

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment