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

前端 未结 9 1896
陌清茗
陌清茗 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:49

    On macbook pro I outcommented in .vimrc the line

    autocmd FileType text setlocal textwidth=78
    

    so it became

    "  autocmd FileType text setlocal textwidth=78
    

    .

    (I installed a version of vim via homebrew.) This helped for all .txt files.

提交回复
热议问题