I know in vim I can use :global to execute commands on the matching lines.
But I'm wondering if it's possible to execute those commands on every matching pattern, not just lines, consider following example:
aaa bbb
aaa ccc aaa ddd ww
I want to perform action: normal wdw
on every matching aaa
, so I expect the result to be:
aaa
aaa aaa ww
But with global, it will only do the action once on the 2nd line.