Awesome article. I wish I knew o and O commands before. Is there any similar commands that inserts an empty line before (and after) and stays in the normal mode. Sometimes while formatting, I just want to insert empty lines while staying in the normal mode.
Awesome article. I wish I knew
o
andO
commands before. Is there any similar commands that inserts an empty line before (and after) and stays in the normal mode. Sometimes while formatting, I just want to insert empty lines while staying in the normal mode.ah, I can do this instead:
I don't think it exists. But luckily, we can always map it if it doesn't exist. Something like:
You can change
<leader>o
to whatever mapping you want :)EDIT: apparently we posted (partially) exact same mapping within 5 minutes haha!!
Eventually, I used this instead:
It has 3 advantages:
10oo
which 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!