Insert line break

5 Points

Mattia Tezzele Mattia Tezzele

10 years ago

Maps Ctrl-J to insert line break (like the opposite of J)

:nnoremap <NL> i<CR><ESC>

Martin Toma

Martin Toma 10 years ago

Hi, good idea. What are your suggestions to map it to? I was wondering about something simple as the opposite J is. But didnt find anything.

Mattia Tezzele

Mattia Tezzele 10 years ago

You got it mapped already. <NL> generates the same character code as Ctrl-J, so that's the combination you are looking for. I'll update the description.