This question was probably answered before, but I tried searching and could not find the answer anywhere.
I am somewhat new to Vim and I am having the following issue. Once I yank a line and paste it, i cannot paste it again. For example, say in Word environment you would copy a text, paste it and then you can paste it again further. But in Vim, once I have pasted it and then try pasting again (p), it pastes the text I pasted the yanked line over.
So for example, I yanked the line "This line is yanked" onto "I don't want this line" and so "This line is yanked" takes place over "I don't want this line". If I click p further on again, I won't get "This line is yanked" pasted but will get "I don't want this line".
Is there a way I can paste the same yanked line over again without going back and yanking it again?
0
register, which always holds the most recently yanked text; it doesn't get overwritten by deletes or changes the way that the default register does. This means that if you want to paste something again, even after performing deletes, you can just"0p
, without ever needing to go yank the text again or manually yank into a named register. – Ardith