pansz (2008-12-25 08:50 +0800) wrote:

> Teemu Likonen 写道:
>> The GNU "indent" utility seems to be full-featured tool for indenting C
>> code. So if gg=G does not do what user wants then maybe
>> 
>>     :%!indent --preferred-indent-style-and-options
>> 
>> will.
>
> That is not going to work for someone who insists hard tabs should be 
> used in source code. Since gnu indent never use hard tabs at all.

I think the definition of "never" can be adjusted with these options:

    -nut, --no-tabs
        Use spaces instead of tabs.
        See  INDENTATION.

    [...]

    -ut, --use-tabs
        Use tabs. This is the default.
        See  INDENTATION.

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

Reply via email to