In my current work of refactoring a fairly large codebase, I find myself wanting to replace apostrophes and quotes with each other from time to time.
Up until now I've been applying
s/"/'/g for visual selections I've made, and it works fine.
Recently though, I discovered the tilde (
~) command. I thought it would be nice if I could expand its functionality to not only change the case of characters, but also exchange
' and vice versa. Is it possible to expand its functionality to accomplish this?