Back To Blog Posts
Removing Shitty Line Endings With VIM
Recently I had an issue where someone had checked in ^M
line ends to a few files into github. When
I open the file in atom, I see something like the following:
To fix this, simply open vim
and execute the following command: %s/\r/\r/g