Is it possible to append a line break to the current line in normal-mode? Basically the opposite of what J does.


I think the closest to what you want would be to replace the character under your cursor by a new line which you can do with rEnter.

You could also use these mappings:

nnoremap <Leader>o o<Esc>0"_D
nnoremap <Leader>O O<Esc>0"_D

They will add a new line under or above the current line without changing your registers.

| improve this answer | |
  • 1
    Nice trick! Never thought about doing it that way. – Geremia Oct 31 '18 at 19:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.