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.