Why can't I stop vim from wrapping my code?

前端 未结 9 1904
陌清茗
陌清茗 2020-12-12 12:05

I can\'t stop vim from wrapping my Python code. If I enter :set nowrap like a champ, but it still wraps.

I can hit J to unite the split lines

9条回答
  •  孤街浪徒
    2020-12-12 12:46

    Maybe it's the textwidth that's set, which automatically breaks lines when it reaches a certain length Try

    :set tw=0
    

    If that fails play with e.g.

    :set wrap linebreak textwidth=0 
    

    and

    :set virtualedit=insert
    

提交回复
热议问题