45
20
I want to yank multiple lines in a single register in vim, to easily paste different text templates in a document.
For example, "iyy yanks only the the current line, if I try to select multiple lines in visual-mode, it isn't written into the register.
Any suggestions?
Similar: How to store all occurrences of a multiline search in a register?
– kenorb – 2017-09-15T19:22:29.337"if i try to select multiple lines in visual-mode, it isn't written into the register." <-- Really? Works for me... – Billy ONeal – 2011-01-17T16:28:58.043
and for me too... – ulidtko – 2011-01-17T16:32:40.333
ah ok, i've tried with "iyv, silly me. should be Vjjj"iy like ulidtko mentioned. – ryz – 2011-01-17T17:03:44.977