Word wrap in Gvim

前端 未结 6 1594
北恋
北恋 2020-12-23 11:15

How do I make Gvim word wrap in such a way that doesn\'t break words in the middle?

6条回答
  •  猫巷女王i
    2020-12-23 12:15

    I use the following settings to wrap long lines for things like markdown files.

    :set wrap
    :set linebreak
    :set nolist  " list disables linebreak
    :set textwidth=0
    :set wrapmargin=0
    

    Source: http://vim.wikia.com/wiki/Word_wrap_without_line_breaks

提交回复
热议问题