This is a quick solluion how to replace windows style line endings <CRLF> to unix style <LF>
In vim type:
:w ++f=unix
for other encodings:
:w ++f=unix&lt;/pre&gt; &lt;pre&gt;:w ++f=dos&lt;/pre&gt; &lt;pre&gt;:w ++f=mac&lt;/pre&gt; &lt;pre&gt;
Source: https://stackoverflow.com/questions/82726/convert-dos-line-endings-to-linux-line-endings-in-vim
