编辑一个我没有兴趣换行的文档,我注意到Vim(确切地说是MacVim 8.0),而不只是显示适合的那部分行,完全隐藏文本行太长而无法放在当前屏幕上。线条中适合的部分所占据的空间只是留空,就像角色变得不可见一样。
有没有办法改变这种行为?
答案 0 :(得分:2)
如果我正确理解您的问题,设置:set display=lastline
会有所帮助。
Change the way text is displayed. This is comma separated list of
flags:
lastline When included, as much as possible of the last line
in a window will be displayed. "@@@" is put in the
last columns of the last screen line to indicate the
rest of the line is not displayed.
truncate Like "lastline", but "@@@" is displayed in the first
column of the last screen line. Overrules "lastline".
uhex Show unprintable characters hexadecimal as <xx>
instead of using ^C and ~C.
When neither "lastline" nor "truncate" is included, a last line that
doesn't fit is replaced with "@" lines.
您也可以尝试:set nowrap
。