I have 4 lines.
foo ["bar"]
baz ["k"]
daskhfkjhadsfj ["askfjhfjdsh"]
dfjhafkjhfha ["skkksks"]
I'd like to do a macro that takes the word and yanks it into a register, but I want the register to increment. e.g.:
f"l"ayf"j0
f"l"byf"j0
f"l"cyf"j0
f"l"dyf"j0
Is there a way to get this command done in such a way that the registers autoincrement, so I can later paste them:
jjjj
f"ap
j
f"bp
I'm aware of register numbering and yi" - i'd like to use this with alpha registers instead. I'm also aware that a collision might occur with my chosen register: You can assume that my macro will be recorded in z and I want to use, say, a-f for registers used.
Can you suggest a way to get this accomplished using a macro?