Reputation: 8047
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?
Upvotes: 1
Views: 59
Reputation: 11
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.
Upvotes: 1
Reputation: 1139
No there isn't. However you can map it like nnoremap K i<CR><esc>
Upvotes: 2