:cdo
vs :cfdo
:cdo
runs a command once for every QuickFix
entry. :cfdo
runs a command once for every file
with QuickFix entries.
Important:* This means that the following command
will run :%s/
multiple times if the file has
multiple QuickFix entries.
:cdo %s/searchpatter/replacepattern/ | update