Eventually, I used this instead:
nnoremap <silent> oo :<C-u>call append(line("."), repeat([""], v:count1))<CR> nnoremap <silent> OO :<C-u>call append(line(".")-1, repeat([""], v:count1))<CR>
It has 3 advantages:
10oo
Not my solution. I just copied it from here: vi.stackexchange.com/a/3881/21711 .. That's a great answer!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Eventually, I used this instead:
It has 3 advantages:
10oowhich inserts 10 lines after the current one!Not my solution. I just copied it from here: vi.stackexchange.com/a/3881/21711 .. That's a great answer!