I am copy-pasting an example from a PDF to Vim and I have to replace all “ and ” with "
and all ‘ and ’ with ' so that the code works.
Well that will probably seem easier to understand:
I want to replace all foo and bar with foobar simultaneously.
Try this in
vi:then