Dec 8, 2018

Get rid of ^M from Visual Studio to Vim

:e ++ff=dos 
The :e ++ff=dos command tells Vim to read the file again, forcing dos file format. Vim will remove CRLF and LF-only line endings, leaving only the text of each line in the buffer.
then
:set ff=unix 
and finally
:wq 

No comments:

Post a Comment

Followers