This is an old revision of the document!


fileformats

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

This will read a file (assuming “dos”), convert line-endings to unix (<CR><NL> pairs will be <NL>):

:e file
:set fileformat=unix
:w
  • docs/vim/fileformats.1217744747.txt.gz
  • Last modified: 2009/06/24 17:39
  • (external edit)