2009-04-20

More vi search and replace

To replace ^M characters that did not quite make it into carriage return when displayed in vi:
:%s/<Ctrl-V><Ctrl-M>/<Ctrl-V><Enter>/g
Note that <Ctrl-V> is a magic sequence that allows vi to uninterpret the next special key, inserting its control code instead.