Friday, May 28, 2010

Re: Any command to format C source in a nice way?

On 28/05/10 12:26, robert song wrote:
> Hi, everyone.
>
> Sometimes C codes in some files are hard to read,
> for example:
> if (!(({ unsigned long flag, roksum; (void)0; __asm__("adds %1, %2,
> %3; sbcccs %1, %1, %0; movcc %0, #0" : "=&r" (flag), "=&r" (roksum) :
> "r" (buf), "Ir" (count), "0" (current_thread_info()->addr_limit) :
> "cc"); flag; }) == 0))
> return -14;
>
> Is there any command to format the specified line directly?
>
> Best Regards,
> robert
>

See:
:help =
:help gq
:help 30.2
:help 30.3
:help C-indenting
:help 'cinkeys'
:help cinkeys-format
:help 'cinoptions'
:help cinoptions-values


Best regards,
Tony.
--
Try to get all of your posthumous medals in advance.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: