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\
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.