Andy Wokula wrote:
A.J.Mechelynck schrieb:
Alexey Vakhov wrote:
Hi Dear community,
Command o and O create new line and switch to insert mode. I want only
insert blank line and stay in normal mode. I know this problem can be
solved using simple mappting, but maybe in vim there are original
commands for this tip?
Thanks a lot
IIUC there are no intrinsic commands for this; but you could use
o<Esc>
O<Esc>
at the keyboard, or
:put =''
:.-1put =''
For some reason
:put_
:put!_
also work. Another odd detail, in fact nothing should be inserted (?)
because the "black hole" register is always empty.
in a script.
Best regards,
Tony.
Andy
The black hole register being empty, its content is always the empty string.
But since ":put" works linewise, that empty string is inserted on a new line.
So putting _ or ='' is the same thing.
Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
59. Your wife says communication is important in a marriage...so you buy
another computer and install a second phone line so the two of you can
chat.