In vim, if I've copied a line using 'yy', then 'p' will paste the copied text on a line below the cursor, and 'P' will paste the copied text to the line above the cursor... But how do I break the line where the cursor is AND paste the text there?
let's say I have this (the pipe char represents the cursor, not a character in the buffer):
ab|cd
I want a paste operation that will end me with:
ab
--Pasted Line--
cd
Basically, the end result would be the same as hitting "i<Enter>ESC" and then "P".
I actually just did this in vim accidentally, with one paste operation (without using i<Enter>ESC etc), but I'm not sure how I did it.
I know this question is similar to: http://stackoverflow.com/questions/1346737/how-to-paste-in-a-new-line-with-vim but it's different because I want to paste something copied using 'yy' and I also want to break the line at the point of the cursor, and paste the line where the new line break was just created.