Vim隐藏了太长的线条,无法完全显示
问题描述:
编辑一个文件,我没有打扰线间断,我注意到Vim(准确地说是MacVim 8.0),而不是显示那部分线条适合,完全隐藏太长的文本行不适合当前屏幕。适合线条部分的空间会留下空白,就好像角色已经变得不可见一样。Vim隐藏了太长的线条,无法完全显示
有没有办法改变这种行为?
答
如果我正确理解你的问题,设置: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
。
谢谢,'set display = lastline'解决了它('set display = truncate'也可以接受)!我觉得'lastline'或'truncate'不是默认的奇怪。 – BlenderBender