Vim隐藏太长而无法完全显示的行

Vim隐藏太长而无法完全显示的行,vim,macvim,Vim,Macvim,在编辑一个不需要换行的文档时,我注意到Vim(准确地说是MacVim 8.0)并没有显示适合的那部分行,而是完全隐藏了太长而无法在当前屏幕上显示的文本行。行中合适的部分所占用的空间只是留空,就好像字符已经不可见一样 有没有办法改变这种行为?如果我正确理解您的问题,设置:set display=lastline会有帮助 Change the way text is displayed. This is comma separated list of flags: last

在编辑一个不需要换行的文档时,我注意到Vim(准确地说是MacVim 8.0)并没有显示适合的那部分行,而是完全隐藏了太长而无法在当前屏幕上显示的文本行。行中合适的部分所占用的空间只是留空,就好像字符已经不可见一样


有没有办法改变这种行为?

如果我正确理解您的问题,设置
: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.
更改文本的显示方式。这是以逗号分隔的列表
旗帜:
包括最后一行时,尽可能多地使用最后一行
在一个窗口中将显示。“@@@@”放在
最后一行屏幕的最后一列,用于指示
该行的其余部分不显示。
像“lastline”一样截断,但在第一行中显示“@@@@
最后一个屏幕行的列。否决“最后一行”。
uhex将不可打印的十六进制字符显示为
而不是使用^C和~C。
如果既不包含“lastline”也不包含“truncate”,则最后一行
“不适合”将替换为“@”行。

您也可以尝试
:立即设置RAP

谢谢,
set display=lastline
解决了它(
set display=truncate
也可以接受)!我觉得很奇怪,
lastline
truncate
不是默认值。