On Dec 20, 2013 1:18 AM, "Christian J. Robinson" <[email protected]> wrote: > > On Fri, 20 Dec 2013, Bohr Shaw wrote: > >> I have 'fileformats' set to 'unix,dos'. But I get 'dos' file format for the first buffer created when Vim starts. It seems only the 'fileformat' option is checked because I'm on Windows and 'fileformat' defaults to 'dos'. > > > > Long ago I worked around this problem this way: > > :set fileformats=unix,dos fileformat=unix
That's not a workaround. That's the documented behavior, from :help 'ffs' Note that when Vim starts up with an empty buffer this option is not used. Set 'fileformat' in your .vimrc instead. This is very similar behavior to 'fileencoding'/'fileencodings'. The plural version is used when detecting what value to set for an existing file and the singular version is used as a default for new files. The strange part is that 'fileformat' is only used for the initial empty buffer and not every new buffer. James -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
