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– statox Apr 23 '21 at 08:36yyan empty line and then pastedpfor below cursor andPfor above the cursor". I'm not sure whether that meansY2pDis kinda clever or sorta tacky. :D – B Layer Apr 23 '21 at 09:01ESCis too far away,Ctrl+Cis an alternative and more convenient way of returning to the Command mode. – raylight Apr 24 '21 at 06:51vim -Nu NONE. Now see what the difference is between5ii<esc>and5ii<C-c>. – D. Ben Knoble Apr 26 '21 at 15:12