Tobiah wrote:
I tried setting ts=2 for an html file.  That worked fine,
but I often use '<' and '>' to indent or dedent blocks of code.
When I tried it under ts=2, the columns moved over eight spaces,
achieved by adding four tabs!  What's up with that?  I just want
one tab to be inserted, and for it to take up two spaces.

tab-stops and shift-width are independent, the latter controlling the amount of indent/exdent for "<" and ">" operations. I find it helpful to always set 'ts' and 'sw' to the same value:

  :set ts=2 sw=2

  :help 'shiftwidth'

-tim





--
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

Reply via email to