我正在用vim编写一个LaTeX文档,并且我用80个字符进行硬包装以使阅读更容易.但是,这会导致跟踪版本控制中的更改时出现问题.例如,在本文开头插入"Lorem ipsum":
1 Dolor sit amet, consectetur adipiscing elit. Phasellus bibendum lobortis lectus 2 quis porta. Aenean vestibulum magna vel purus laoreet at molestie massa 3 suscipit. Vestibulum vestibulum, mauris nec convallis ultrices, tellus sapien 4 ullamcorper elit, dignissim consectetur justo tellus et nunc.
结果是:
1 Lorum ipsum dolor sit amet, consectetur adipiscing elit. Phasellus bibendum 2 lobortis lectus quis porta. Aenean vestibulum magna vel purus laoreet at 3 molestie massa suscipit. Vestibulum vestibulum, mauris nec convallis ultrices, 4 tellus …
我爱vim,我真的很喜欢在写这些文字时把它包裹起来.来自Tim Pope的降价插件非常棒,而且当我尝试硬包装物品清单时,它就能完成工作.好的,我的意思是做正确的工作:
- here I write a long long long line that is longer than the 80 caracters of a line and therefore should be wrapped.
- This is a short line
- here I write another long long long line that is longer than the 80 caracters of a line and therefore should be wrapped.
Run Code Online (Sandbox Code Playgroud)
应该成为(申请gqap后):
- here I write a long long long line that is longer than the 80 caracters
of a line and therefore should be …
Run Code Online (Sandbox Code Playgroud)