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

为什么我不能停止vim包装我的代码?

发布时间:2020-12-15 16:36:08 所属栏目:安全 来源:网络整理
导读:我知道必须有一些明显的缺失,但我不能停止vim包装我的Python代码。我输入:set nowrap like a champ,but still it wrapaps。我可以打J来联合分裂的代码,所以它似乎是一个真正的回车被插入,我只是不明白为什么或如何停止它。 'textwidth' 'tw' number (de
我知道必须有一些明显的缺失,但我不能停止vim包装我的Python代码。我输入:set nowrap like a champ,but still it wrapaps。我可以打J来联合分裂的代码,所以它似乎是一个真正的回车被插入,我只是不明白为什么或如何停止它。
'textwidth' 'tw'        number  (default 0)
                        local to buffer
                        {not in Vi}
        Maximum width of text that is being inserted.  A longer line will be
        broken after white space to get this width.  A zero value disables
        this.  'textwidth' is set to 0 when the 'paste' option is set.  When
        'textwidth' is zero,'wrapmargin' may be used.  See also
        'formatoptions' and |ins-textwidth|.
        When 'formatexpr' is set it will be used to break the line.
        NOTE: This option is set to 0 when 'compatible' is set.


'wrapmargin' 'wm'       number  (default 0) 
                        local to buffer
        Number of characters from the right window border where wrapping
        starts.  When typing text beyond this limit,an <EOL> will be inserted
        and inserting continues on the next line.
        Options that add a margin,such as 'number' and 'foldcolumn',cause
        the text width to be further reduced.  This is Vi compatible.
        When 'textwidth' is non-zero,this option is not used. 
        See also 'formatoptions' and |ins-textwidth|.  {Vi: works differently
        and less usefully}

如果你参考自动包装长线发送他们到下一个,请尝试

:set textwidth=0 
:set wrapmargin=0

(编辑:李大同)

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

    推荐文章
      热点阅读