假设我有一个很好的评论块,例如下面的那个
/*
** This is a nice comment block. Displace the `**'s and I will eat your nose! Also, here is a long line of text clearly longer than the textwidth, which should force gq to rearrange the lines. Wheeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...
**
**
*/
我应用gq
格式化它并确保没有行超过字符数。如何让gq
不要取代每个注释行前面的初始`**?
非常感谢!
答案 0 :(得分:3)
请参阅:help format-comments
。我从
:set comments=s0:/*,mb:**,ex:*/