Lets say I wrote a simple CSS rule like this:
.star_10 { background: url(stars.png) no-repeat 0 0; }
And I need 10, so I copied it 9 times.>
Just using pure vim resources, no scripting:
:let c=10 | g/_\zs\d\+\ze/ s//\=c/ | let c-=1 :let c=0 | g/no-repeat 0 \zs\d\+/ s//\=c/ | let c-=18