VimConvertDosToUnix

How to quickly convert a DOS file into a UNIX file in Vim

Rather than repeat what has been said better elsewhere, here is a quick summary:

1. Save the file as UNIX

Enter the following to save and convert the file:

:w ++ff=unix

2. Set the file type within Vim

Simply type, in vim:

:set ff=unix

Or, the longer and more readable version:

:set fileformat=unix

That's all there is to it!

See Also: