And find out if that fixes it. As @steeldriver indicates within the reviews, right after opening the vim editor, push esc essential and type :set ff=unix. Without the need of %, the command applies for existing line only. And I came upon some examples where ^M will not be at https://goo.gl/maps/4n1J31u6uuphv4qV9