This is an old revision of the document!
fileformats
Fixing Detection Problems
If your file has consistent line endings throughout, but you have had a 'ff' detection problem, the best fix is to force Vim to use the correct format with the :e command:
:e ++ff=mac
conversion
This will read a file (assuming “dos”), convert line-endings to unix (<CR><NL> pairs will be <NL>):
:e file :set fileformat=unix :w