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?
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?
No there isn't. However you can map it like nnoremap K i<CR><esc>
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.