Re: 6.0aa - 'source' a ff=dos script on Linux is broken
- Ron Aaron wrote:
> Yes, I know you can't use a ff=dos script on Linux, in e.g. 'vimrc'. ButI didn't change anything in this area. And the documentation says that CR-LF
> after vim is loaded, one should be able (and used to be able!) to source a
> file no matter what the ff!
> I just tried to source Mark's script, and vim barfed until I converted it to
> unix ff. I think this is new behaviour.
separators can't be used on Unix:
On other systems, Vim expects ":source"ed files to end in a <NL>. These
always work. If you are using a file with <CR><NL> <EOL>s (for example, a
file made on MS-DOS), all lines will have a trailing <CR>. This may cause
problems for some commands (e.g., mappings). There is no automatic <EOL>
detection, because it's common to start with a line that defines a mapping
that ends in a <CR>, which will confuse the automaton.
I notice a remark about Mac format is missing, I'll add one.
The future isn't what it used to be.
/// Bram Moolenaar -- Bram@... -- http://www.moolenaar.net \\\
((( Creator of Vim - http://www.vim.org -- ftp://ftp.vim.org/pub/vim )))
\\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///