It’s very easy, but also easy to forget how to convert to or from a DOS format file in Unix using “vim” (Vi iMproved), the Open Source “vi”. If the file is in DOS format and you want to convert to Unix, use the command:
:set ff=unix
note that “ff” is an abreviation . . . → Read More: How to convert to/from DOS format in VIM…
