微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

我知道必须有一些明显的缺失,但我不能停止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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐