加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

当线条不适合屏幕时,如何阻止vim显示符号(@)?

发布时间:2020-12-15 18:54:30 所属栏目:安全 来源:网络整理
导读:在vim中,当我有一条不能完全显示在屏幕上的行时,该行显示为符号“@”,直到屏幕底部.例如,如果我有一个文件: 1 Hello World2 Really long sentence that doesn't fit on one line. 我在文档的开头,屏幕高度为3行,vim显示如下: 1 Hello World@@ 我宁愿vim显
在vim中,当我有一条不能完全显示在屏幕上的行时,该行显示为符号“@”,直到屏幕底部.例如,如果我有一个文件:
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

这可能吗?

将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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读