我有一个文本文件:
Function Description
concat Returns the concatenation of the arguments.
contains Returns true if the first argument string contains the second argument string; otherwise returns false.
我想将文本换行到第 2 列,结果应该是:
Function Description
concat Returns the concatenation
of the arguments.
contains Returns true if the first
argument string contains
the second argument
string; otherwise returns
false.
如何在 vim
或 shell
中快速完成?感谢您的任何建议。
最佳答案
在 Vim 中使用 indentexpr
选项可以轻松解决该问题。放
它是为第一列指定的字符数,
:set inde=16
然后像往常一样使用 gq
或 gw
系列命令设置文本格式。
关于shell - 如何在第 2 列上换行文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9971850/