我只是在看这篇文章,它描述了如何在vim中包装整个单词。公认的解决方案是这样的:
:set formatoptions=l
:set lbr
其中包含以下文本(选项卡显示为\ t):
*Inside of window *Outside of window
|---------------------------------------|
|\t\tthis is a like of text that will wr|ap here
|\t\tcan you see the wrap |
| |
|---------------------------------------|
这完成了这样的行为(选项卡显示为\ t):
*Inside of window *Outside of window
|---------------------------------------|
|\t\tthis is a like of text that will |
|wrap here |
|\t\tcan you see the wrap |
| |
|---------------------------------------|
但是,我想重新定义此功能。我希望包装线的前面具有与上面的行加一相同数量的选项卡。即:
*Inside of window *Outside of window
|---------------------------------------|
|\t\tthis is a like of text that will |
|\t\t\twrap here |
|\t\tcan you see the wrap |
| |
|---------------------------------------|
有任何想法吗?