On a second thought, my previous post will only change the definitions, not the calls. You could probably use the same technique for the calls as well. Alternatively you could make an explicit regex for each function and use vim or sed to change it. Ex: g/fooBarBaz/s//foo_bar_baz/g (for vim) -D