不是重复的在 Vim 中,将文件中的所有行连接成一行的最简单方法是什么? https://stackoverflow.com/questions/391710/in-vim-what-is-the-simplest-way-to-join-all-lines-in-a-file-into-a-single-line,因为我特别想使用gq
重新格式化功能。
我曾经在vim中使用80个字符编写latextextwidth
。然而,我现在已经切换到无限textwidth
,所以我的台词永远持续下去。
Vim 的重新格式化(例如 gqap)将几行组合成一个段落,将它们包装为 80 个字符。我希望它将它们组合成一行。
ie
Without a \clang{goto} statement in the HIR, we must instead use conditional
statements to check the iteration number.
应该重新格式化为
Without a \clang{goto} statement in the HIR, we must instead use conditional statements to check the iteration number.
当它突出显示并且gq
被按下。
如果你不喜欢 depesz 建议的“J”,那么就这样做
:set tw=9999
然后做“gq”。根据您的需要调整 tw。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)