Remove carriage returns from DOS-formatted text files using Vim

If you need to strip carriage return characters from a text file, you can use Vim:

vim file.txt
:set ff=unix
:wq
Henning Koch