I want to put a specified number after each pasted line automatically and this number will increment every past.
Sometimes I want to declare many variables. So I write one declaration and copy(yank) it and past to a second line. Then I can repeat this operation with dot operator ".". But it's very annoying to make these variables vary.
I want to achieve something like this:
variable (yy) variable1 (yy)
variable (p) variable2 (p)
variable (.) => variable3 (.)
variable (.) variable4 (.)
variable (.) variable5 (.)
Is it possible to perform such a operation in just the vim?