在n
Vim的的选项formatoptions
设置将缩进列表项的第二行以匹配第一行的缩进。但是,第三行及其后的行不还原为缩进,因此:
1. Doing a list. This is my list. I am writing
a list. It's quite a long list. It's really
long. I can't believe how long it is. And
this just the first item!
2. Another list item.
我真的希望它缩进所有行,如下所示:
1. Doing a list. This is my list. I am writing
a list. It's quite a long list. It's really
long. I can't believe how long it is. And
this just the first item!
2. Another list item.
使用Vim自己的选项,脚本或外部格式化程序(例如par),是否可行?