On Thu, Dec 3, 2015 at 11:53 PM, Barret Rhoden <[email protected]> wrote:
> On 2015-12-02 at 22:57 Xiao Jia wrote:
>> How do you set it up to automatically align in this way?  I was using
>> a modified Linux style for vim, but it seems to be tabbing as far as
>> possible.
>
> I don't do it automatically, which stinks.  For the most part, I hit
> enter, it aligns to e.g. here:
>
>         printk("whatever",
>         <---- Vim brought me there
>
> then I just hold down the space bar.
>
> on subsequent lines Vim indents too far, and I delete a few spaces
> while thinking to myself "I should automate this or just stop doing
> it".  Then I do neither.  =)

Finally, I sit down and read this

  http://vim.wikia.com/wiki/Indent_with_tabs,_align_with_spaces

The information turns out to be very useful.  There is a plugin called
"Smart Tabs"

  http://www.vim.org/scripts/script.php?script_id=231

which is different from the built-in smarttab.

-- 
You received this message because you are subscribed to the Google Groups 
"Akaros" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to