Here's a Vim tip from zzapper.co.uk . . .
:%s/\d\+/\=(submatch(0)-3)/
©2020 Casey Falk. All thoughts presented are my own and not my employer's.