How do you get vim to display wrapped lines without inserting newlines?

后端 未结 3 2037
醉话见心
醉话见心 2020-12-16 13:00

I\'m getting back in touch with my inner (g)vim due to an unscheduled MacBook mother(board) of a meltdown (my emergency backup Linux box won\'t run TextMate). All told I\'m

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-16 13:41

    To turn on word wrapping:

    :set wrap
    :set linebreak
    

    To copy & paste the original text and not any padding works for gvim. For vim in an xterm though, it copies the space padding at EOL (though not the newline). I thought this should work but it doesn't:

    :set mouse=a
    

提交回复
热议问题