25
11
I quite often find I have a need to insert a blank line either below or above the current line when editing in vim. o
and O
will do this, but they subsequently switch into insert mode, which is annoying. Is there any built-in command to do this which will remain in normal mode?
I now use this, so I've marked this as the "correct" solution; but all the answers here are great. – Andrew Ferrier – 2014-10-12T09:31:12.023
Great tip, although I preferred to map
<Space>o
and<Space>O
instead. – simlev – 2017-03-28T14:30:57.433