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

前端之家收集整理的这篇文章主要介绍了为什么我不能停止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
原文链接:https://www.f2er.com/bash/391703.html

猜你在找的Bash相关文章