How to Convert DOS Line Breaks to UNIX in VIM

1 |
To convert DOS line breaks (^M) to UNIX in VIM: |
1 2 3 4 5 |
:%s/^M/\r/g -OR- :set fileformat=unix |
![]() |
1 |
To convert DOS line breaks (^M) to UNIX in VIM: |
1 2 3 4 5 |
:%s/^M/\r/g -OR- :set fileformat=unix |