Help for this page
perl -pi -e 's/\$oldname\b/\$oldname/g' <files>
:%!perl -pe 's/\$oldname\b/\$oldname/g'