Hi Loudking,

You can check your existing comment styles by
:set comments


> My manager prefers comments in C files in this style
>
> /*
> **
> **
> */
>

To add this comment style for c,cpp:
autocmd FileType c,cpp set comments+=s:/*,mb:**,ex:*/


> while the defalt comment style is
>
> /*
>  *
>  *
>  */
>
>
To remove this comment style use:
autocmd FileType c,cpp set comments-=s1:/*,mb:**,ex:*/

Check :h comments and :h format-comments for details.

You will also need to make sure that your formatoptions has the following:
croq
Check :h fo-table for details

Regards,
Abhishek

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

Reply via email to