Let say I have a simple line
hell<cursor>o
What is the fastest way to yank this line and paste to a result like this?
hello
hello
I am currently doing this:
yy # To yank this line
p # Paste on next line
O # To insert and add a line above the pasted line
But doing so I will end up in Insert Mode. How can I stay in normal mode for all this?
Y<leader>op
yy
an empty line and then pastedp
for below cursor andP
for above the cursor". I'm not sure whether that meansY2pD
is kinda clever or sorta tacky. :Dvim -Nu NONE
. Now see what the difference is between5ii<esc>
and5ii<C-c>
.