Reputation: 1479
I found this command in a Stack Overflow post:
:set formatoptions+=r
This works great in insert mode, but in normal mode pressing o doesn't really work for multiline comments, ie:
/**
*
*
*/
Upvotes: 2
Views: 83
Reputation: 3361
If you want the comment leader to be included:
:set formatoptions+=o
Otherwise:
:set formatoptions-=o
Upvotes: 3