vimline-breakscarriage-returnline-endingseol

Convert ^M (Windows) line breaks to normal line breaks


Vim shows ^M on every line ending.

How do I replace this with a normal line break in a file opened in Vim?


Solution

  • This is the only thing that worked for me:

    :e ++ff=dos

    Found it at: http://vim.wikia.com/wiki/File_format