Bob S. answered 07/04/19
Tutor
4.9
(554)
Long time Linux user and administrator
You can convert from DOS line endings to Unix line endings using the command line tool 'dos2unix'. Once installed just:
$ man dos2unix
for usage information.
You can tell VIM that it is dealing with a DOS file by the command
:set ff=dos
Hope this helps.