in reply to Removing carriage returns from source code
:%s/^M//g [download]
Originally posted as a Categorized Answer.