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

前端之家收集整理的这篇文章主要介绍了为什么我不能停止vim包装我的代码?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我知道必须有一些明显的缺失,但我不能停止vim包装我的Python代码。我输入:set nowrap like a champ,but still it wrapaps。我可以打J来联合分裂的代码,所以它似乎是一个真正的回车被插入,我只是不明白为什么或如何停止它。
  1. 'textwidth' 'tw' number (default 0)
  2. local to buffer
  3. {not in Vi}
  4. Maximum width of text that is being inserted. A longer line will be
  5. broken after white space to get this width. A zero value disables
  6. this. 'textwidth' is set to 0 when the 'paste' option is set. When
  7. 'textwidth' is zero,'wrapmargin' may be used. See also
  8. 'formatoptions' and |ins-textwidth|.
  9. When 'formatexpr' is set it will be used to break the line.
  10. NOTE: This option is set to 0 when 'compatible' is set.
  11.  
  12.  
  13. 'wrapmargin' 'wm' number (default 0)
  14. local to buffer
  15. Number of characters from the right window border where wrapping
  16. starts. When typing text beyond this limit,an <EOL> will be inserted
  17. and inserting continues on the next line.
  18. Options that add a margin,such as 'number' and 'foldcolumn',cause
  19. the text width to be further reduced. This is Vi compatible.
  20. When 'textwidth' is non-zero,this option is not used.
  21. See also 'formatoptions' and |ins-textwidth|. {Vi: works differently
  22. and less usefully}

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

  1. :set textwidth=0
  2. :set wrapmargin=0

猜你在找的Bash相关文章