但是,是否可以将Vim包装到空白处的新行,而不是一半字?
This option changes how text is displayed. It doesn’t change the text
in the buffer,see ‘textwidth’ for that.
When on,lines longer than the width of the window will wrap and
displaying continues on the next line. When off lines will not wrap
and only part of long lines will be displayed. When the cursor is
moved to a part that is not shown,the screen will scroll
horizontally.
The line will be broken in the middle of a word if necessary. See
‘linebreak’ to get the break at a word boundary.
帮助换行
If on Vim will wrap long lines at a character in ‘breakat’ rather
than at the last character that fits on the screen.
帮助打破
‘breakat’ ‘brk’
string
(default" ^I!@*-+;:,./?"
)
所以,设置linebreak,它应该开箱即用。或者你可以限制breakat只是打破空格,而不是空格标点符号。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。