Brett Stahlman 写道:
> If you use tabs only for leading indent, an indent level can
> be whatever you want it to be when you're viewing the file. Almost as
> importantly, it can be whatever someone else wants it to be when he's
> viewing the same file...

No, this is a false illusion, you cannot expect a non-constant indent 
level anyway, consider the following code.

suppose we have 4 space as indent level:
{
foobar1(); // comment1
if (fb2()) { // comment2
fb3(); // comment3
switch (x) { // comment4
case 1:
fb4(); // comment5
break;
default: // comment6
break;
}
}
}

now we change the indent level to 3:

{
foobar1(); // comment1
if (fb2()) { // comment2
fb3(); // comment3
switch (x) { // comment4
case 1:
fb4(); // comment5
break;
default: // comment6
break;
}
}
}

Got the idea? If anyone wants to change the indent level, the code is 
ruined anyway.

Simply use only space for indent solves all problem above, personally I 
do recommend not to use tab size other than 8 at all.



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

Reply via email to