What is the best way replace multiple lines with the contents of the clipboard?
The problem I'm having is when I yank a line and paste it over another line the "yank" is replaced with the line I just replace. Now, if I want to replace another line with the same line I have to go back up and yank it again.
There's got to be a better way to do this.
Also, you may hold the ctrl key first before doing the ctrl + v in order to paste the copied items multiple times. Hope this helps you. Was this reply helpful?
By allowing you to select multiple content and paste all of them at once. Features: Filter you clipboard, to quickly find what to paste. Choose in which order you want to paste (older first or recent first)
Press Win key+V. Click the item you wish to paste. Continue until you've pasted each of the items you want. Next, you can control the items you've pasted.
I have this in my .vimrc:
xnoremap p pgvy
(note: this will work only with the default register, but this mapping is easy to remember). Writing a more elaborate version would be possible. Also, you still can use P to get the old behaviour.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With