On 24/12/08 01:04, Oliver Zheng wrote:
> On Tue, Dec 23, 2008 at 3:57 PM, Max Waterman
> <[email protected]>  wrote:
>> How is the difference between the two instances above best described?
>> Perhaps 'block indentation' as apposed to 'line-wrapping indentation'?
>
> The difference is it allows for a variable width display of tabs.
> Different people have different preferences for their tab width.
> Personally, I prefer 8 columns for a tab, but the guy next door might
> like 3. A scheme that has tabs for indents allows for everybody's
> preference.
>
> The spaces are particular to the statement. The width of alignment
> depends on the previous line of the statement, not on how wide I
> prefer my tabs to be.
>
>
> So it seems like there is no feature available. I guess I'll request
> this feature on vim.org.
>
> Thanks guys.
>
> Oliver

It's hard for Vim to guess that in

        if (a == b &&
            c == d &&
            e == f)

you want c aligned with a (and not, let's say, one level of indent 
further than the "if"). However, as others have repeatedly said, with 
":set autoindent copyindent" (and maybe 'preserveindent' but I'm less 
sure what it does), when you hit Enter after "c == d &&", the third line 
will get the exact same mixture of tabs and spaces as the second one.


Best regards,
Tony.
-- 
Shit makes the flowers grow and that's beautiful

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

Reply via email to