As you say, “Or any other function in vim,” I suggest an alternative by writing a macro. Personally, I like to use macros for such things, because you perform one action that you want to do once, which will help you think through exactly what you want, and then just repeat the same thing as many times as you need .
, , , , .
.
q a ( a - a )
0 ( )
, , : 3 d w - , , .
$ ( )
a SPACE ESC p ( , , )
j ( , , )
q ( )
, , , . , , :
@ a ( , a).