all repos — h3rald @ 6b243ded05a7593922d198634c681075de1c12e2

The sources of https://h3rald.com

contents/grimoire/remove-cr-characters.md

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
-----
id: remove-cr-characters
title: "Remove carriage return characters"
subtitle: "These pesky ^M characters can be seen when using Vim every so often"
content-type: spell 
-----

Vim will add these if you created a file on Windows, and you try to open it on a *nix machine. Apparently you can [avoid this entirely](https://vim.fandom.com/wiki/File_format) with some extra configuration, but if it happens, just ente the following command:

```vim
:s/^M$//
```

(press `CTRL+V` and `CTRL+M` to enter the `^M` thingie)