I was reading through the vim wiki about the power of g https://vim.fandom.com/wiki/Power_of_g and would like to do something similar to :g/pattern/y A
but a little bit different.
I have an html file with tags that have a bunch of properties like this:
<the-tag
prop="prop1"
</the-tag>
<the-tag
prop="prop2"
</the-tag>
I would like to append to register a, the value inside the prop quotes. Is this possible using :g or some other method? Here is what I tried:
:g/prop/normal yi" A
but this just yanks the very last prop value instead of a whole list. Of course I could do:
:g/prop/y A
but this would give me:
prop="prop1"
prop="prop2"
which is not what I'm looking for. Is this possible?