Remove ^M with Vim

These are instructions on how to get rid of ^M in text-files with the use of Vim. In Linux/Unix by pressing: :%s/^M//g Note that ^M is inserted by pressing the keystoke: Ctrl+V  Ctrl+M This is because Ctrl+V will give the escaped form of the key pressed after this. You’ll see that when you press Ctrl+V […]