这些是.vimrc中我的格式选项:
set formatoptions=tqronw
set formatlistpat=^\\([\\-\\*]\\\|[0-9]\\+[.)]\\)\\s*
set textwidth=72
set autoindent
1)
我的文字:
- This is my text this is my text this is my text this is my text this is my text this is my text.
格式化后的输出:
- This is my text this is my text this is my text this is my text this is my
text this is my text.
预期产出:
- This is my text this is my text this is my text this is my text this is my
text this is my text.
2)
我的文字:
for Biochemistry, conducted a quality clinical study to determine the effects of microwave cooking on food
格式化后的输出:
for Biochemistry, conducted a quality clinical study to determine the
effects of microwave cooking on food
预期产出:
for Biochemistry, conducted a quality clinical study to determine the
effects of microwave cooking on food
修改
找到我的第一个问题的解决方案:)
文中有(不可见)(没有空格)
当我使用普通空格替换时,格式符合预期
答案 0 :(得分:1)
让我猜测你的第二个问题。尝试添加:
set nosmartindent