Matt Wozniski 写道:
> Assuming this indent/alignment style is used, you could get code that
> looked like this:

Let's add something more, okay?

> int main() {
> .-------int returnval = 5; /* This is the value that I will return.
> .-------                      It's nonzero, which means failure.    */
> .-------if (foobar)
 > .-------.-------return 0;  /* This is where I return it.*/
 > .-------else
> .-------.-------return 1;  /* This is where I return it.*/
> }

Now we change the tab size to 3:
 > int main() {
 > .--int returnval = 5; /* This is the value that I will return.
 > .--                      It's nonzero, which means failure.    */
 > .--if (foobar)
 > .--.--return 0;  /* This is where I return it.*/
 > .--else
 > .--.--return 1;  /* This is where I return it.*/
 > }

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

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 received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to