In vi, I can use o
or O
to add a blank line and go into insertion mode. But what if I want to stay in command mode, is there a command for this?
In googling, I'm seeing suggestions to add stuff to my vimrc, but it seems like there should be an easier way (that will always work.)
Best Answer
According to the VIM FAQ you can use the
:put
command:but then really it's easier to add:
to your
.vimrc
. This way you can pressEnter
orShift-Enter
innormal mode
to insert a blank line below or above current line. Of course substitute<Enter>
and<S-Enter>
with your preferred keys.