:%s/foo/bar/g
hilfreich um via putty mehrzeiligen text zu pasten Tip #330: how to stop auto indenting:
All you need to do is "set paste", then paste your stuff, and then "set nopaste" again.