在
vim中,我可以设置textwidth选项,然后将新文本格式化为wrap.我也可以使用“gq”命令来显式包装文本.但是,使用项目符号列表的行为对我来说有点意外. vim文档讨论了使用带有连字符的项目符号的项目符号列表.当我尝试这样做时,它开始没问题:
原文链接:https://www.f2er.com/bash/384823.html- This is a bulleted list item that has been wrapped. It looks good.
但是,如果我继续第三行,它会放弃缩进:
- This is a bulleted list item that has been wrapped over more than two lines. The indentation for lines after the second is unexpected.
这发生在:
formatoptions=tcq comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-
为了清楚起见,我想要这样的缩进:
- This is a bulleted list item that has been wrapped over more than two lines. I want every line after the first to get the same indent.