How to break a line in vim in normal mode?

后端 未结 8 553
梦谈多话
梦谈多话 2021-01-31 08:08

I would like to break a line (at the location of the cursor) in to two lines without leaving normal mode (entering insert or command-line mode). Is this possible?

I curr

8条回答
  •  死守一世寂寞
    2021-01-31 08:22

    I don't know of a single key command, but a lot of times I do "r" then "Enter" to break a line.

    "r" replaces the current character under the cursor without going into insert mode. This may not be what you want if you don't want to replace a character...

提交回复
热议问题