The fileformats
option is global. The fileformat
option however is local to each buffer.
With the following command you can check how those are set:
:verbose set ff? ffs?
In my .vimrc
I have set the following:
set fileformats=unix,dos,mac
And it Just Works.