In VIM, how do I break one really long line into multiple lines?

前端 未结 11 558
刺人心
刺人心 2021-01-29 17:53

Say I have a super long line in the VIM editor (say around 300+ characters). How would I break that up into multiple lines so that the word boundaries roughly break at 80 chara

11条回答
  •  孤街浪徒
    2021-01-29 18:01

    I manually break up the long line at place. I think where the main point is by pressing "r" (normal mode) then press .

    This will make delete a character where cursor is. So remember to do it at the space before the word you want to make a new line, else you will have to insert the missing character.

    I just don't know how to break the line and shift it down 2 line space so that there will be space between the 2 lines.

提交回复
热议问题