Marco/Akshay: Replace vim macro with ruby gsub