On Thu, Jul 9, 2009 at 2:28 AM, Monty Taylor<[email protected]> wrote:
>> 3) I noticed that the codestyle for comments was updated for this
>> (unless I am wrong):
>>
>> /**
>> *
>> *
>> *
>> */
>>
>> The "*" on a blank line. I gotta say... I am not in favor of it. In very
>> large part because my editor keeps screwing it up :)
>>
>> I don't see the need for it... but I can go with majority on it. Though
>> if someone has a vim recipe for this... I am game.
>
> I think the continuation *'s are a thing doxygen wants? My emacs knows
> how to deal with it, but you're right, my vim seems to not ... I'll go
> see if I can find a vim recipe.
>
> OOH. Found it:
>
> " turn on comment continuation for C style comments
> set fo+=r       " formatoptions r adds new comment line automagically

formatoptions r let vim continue comments automatically when Enter is
pressed in the insert mode. If you'd like to let vim perform the same
when using "o" or "O" to open a new line, you may need:
set fo+=ro

> " only apply on C comments, and mail forwarding "> "
> set com=s1:/*,mb:*,ex:*/,:>,fb:-

And for C++ double slash comments, you may like this:

set com=s1:/*,mb:*,ex:*/,://,:>,fb:-

>
> Works beautifully.
>
> Monty
>
> _______________________________________________
> Mailing list: https://launchpad.net/~drizzle-discuss
> Post to     : [email protected]
> Unsubscribe : https://launchpad.net/~drizzle-discuss
> More help   : https://help.launchpad.net/ListHelp
>



-- 
Cheers.

Biping MENG

_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help   : https://help.launchpad.net/ListHelp

Reply via email to