<p>If I open files I created in Windows, the lines all end with <code>^M</code>.<br />
How do I delete these characters all at once?</p>

```
```
:%s/\r\+//g
```
```
In Vim, that strips all carriage returns, and leaves only newlines.