On Thu, Dec 25, 2008 at 05:43, pansz <[email protected]> wrote:

> The comment will not get aligned after you changed the tab size. mixed
> tab and spaces does not help.

You are cheating by trying to align across several levels of logical nesting.
It's obvious that there is no flexible method of alignment in that situation,
today. You would need a meta-tab or something similar if you wanted
to achieve this in a text interface.
I still maintain that this is not needed in the real world as maintaining
perfect alignment of behind-code comments is not practicable with
more than two or three level of indentation, anyway. _Especially_
with sw=8 which you seem to prefer.


> There's *no* way to use a variant tab size and retain a reasonable
> output. Fix the tab size to 8 or use only spaces is the ultimate
> solution anyway.

You definition of reasonable differs from mine.
The case you constructed serves as justification to force everyone
touching your code to adhere to your rules. Not a nice thing to do
at best, actively harming collaboration at best.

Point in case, the Perl guidelines suggest sw=4 using soft tabs.
What would happen if you edited those files and saved them?
Even if you were not to change any of the existing lines, you
would mess up the file for everyone not using sw=8.
Also, please keep in mind that many people code in Terminals
that are 80 chars wide. Forcing them to use sw=8 is just plain
unfair.


Richard

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to