I have a file with the following line:
img width="240" height="120"
I want to scale the width and height by the same amount so
:%s/width="\\(.*\\)" height="\\(.*\\)"/width="2*\\1" height="2*\\2"/g
produces
img width="2*240" height="2*120"
is there anyway to make vi actually compute 2*240=480
and put 480
in the result.
thanks for your help.