1

Under normal mode, to merge 2 lines, we can press J. But how to break one line (somewhere in the middle) into 2 lines? Now I can only press i to enter insert mode and press <CR>.

Is there a command under normal mode, one type to do this?

romainl
  • 186,200
  • 21
  • 280
  • 313
Troskyvs
  • 7,537
  • 7
  • 47
  • 115

2 Answers2

2

No there isn't. However you can map it like nnoremap K i<CR><esc>

Mukesh Soni
  • 1,119
  • 3
  • 13
  • 23
1

As per How to break a line in vim in normal mode?

r<Enter> comes closest to what you are trying to do, although <CR> will replace the character under the cursor. It works for me because I usually break a line on a white space.

Lungten
  • 11
  • 1