I\'d like do use vim search-and-replace to replace all \" with \' and vice-versa. Is there a way to achieve this in one step? I\'m thinking of something like this:
Probably the laziest/easiest way:
:%s/'/__/g | %s/"/'/g | %s/__/"/g
Three basic steps combined into one line:
'
__
"
Then combine them with the | symbol.
|
I'm sure some vim wizards will have a better solution, but that worked for me.