This maybe really simple, But I tried searching and I ended up with stuff like copying multiple lines, cut and paste multiple lines etc. What am looking for is pasting a single line multiple times in Vim.
For eg. A line 'X' is copied and I want to paste this line alone for say 30 times, thus I will have 30 'X' lines. Is it possible with a single command in Vim? Please help me.
Note: A single command for paste. Copy of the line can be done by 'y'. for pasting 30 times or so, I need a single command. Please help me here.
y
) and doing the paste operation xp
times (wherex
is the number of times you want to paste, andp
is the paste operation) – Mothy