Kill CTRL-M's From a Windows File written by Kevan on Jul 8, 2010 Because so randomly do I need this, in vi, to delete all instances of a CTRL-M at the end of a line, do this command: :%s/^M//g to make the ^M, do a CTRL-V, CTRL-M. Good times.