Vim

File Format (dos/unix)

Display file format:

:set ff?

Change file format:

:set ff=dos
:set ff=unix