Convert DOS line endings to Linux line endings in Vim
If I open files I created in Windows, the lines all end with ^M. How do I delete these characters all at once? 27 s 27 dos2unix is a commandline utility that will do this, or :%s/^M//g will if you use Ctrl–v Ctrl–m to input the ^M, or you can :set ff=unix and Vim will … Read more