在Vim中,当我有一行不能完全显示在屏幕上时,这行显示为一个at符号"@“,一直到屏幕底部。例如,如果我有一个这样的文件:
1 Hello World
2 Really long sentence
that doesn't fit on
one line.
我在文档的开头,屏幕高度为3行,Vim显示以下内容:
1 Hello World
@
@
我更愿意让Vim显示以下内容:
1 Hello World
2 Really long sentence
that doesn't fit on
这个是可能的吗?
发布于 2011-01-07 09:43:34
将set display+=lastline
添加到您的~/.vimrc
来自:help 'display'
lastline When included, as much as possible of the last line
in a window will be displayed. When not included, a
last line that doesn't fit is replaced with "@" lines.
发布于 2011-01-07 09:45:07
:set display=lastline
会让它看起来像这样:
2 Really long sentence
that doesn't fit @@@
https://stackoverflow.com/questions/4621798
复制相似问题