Suppose I have the following four lines:
line1 line2 line3 line4
Now if I go to
line1 and do a
yy which copies the line and then go to start of
line3 and do a paste using 'p', I would get
... line3 line1 line4 ....
Why did it paste
line3 in a new line?
My initial though was because the newline character $ was attached to line3 and that when I pressed
p vim considered
line3$ as one word so it pasted after
line3$. However it seems my understanding was wrong. Because if I do this
line3 $ and then do a
p at the start of the line I get the same result.
p create a new line and paste in a new line after