I have a giant html file which is a mess (not my fault). I want to add to some nodes (about 400) a unique id. They all have are of the same class, so I can add the id like this
:% s/class="some-class"/& id=<some id>/
My problem is generating the id - its has to be unique for each match.