Lines Matching refs:fileformat
1 " Test for 'fileformat'
5 " Test behavior of fileformat after bwipeout of last buffer
8 set fileformat&
9 if &fileformat == 'dos'
11 elseif &fileformat == 'unix'
18 call assert_equal(test_fileformats, &fileformat)
42 call assert_fails('set fileformat=latin1', 'E21:')
85 " try with 'fileformat' set to 'unix'
86 set fileformat=unix
98 " try with 'fileformat' set to 'dos'
99 set fileformat=dos
111 " try with 'fileformat' set to 'mac'
112 set fileformat=mac
292 " Test for changing the fileformat using ++read
299 " A :read doesn't change the fileformat, but does apply to the read lines.
300 r ++fileformat=unix Xfile1
301 call assert_equal('unix', &fileformat)
304 call assert_equal('dos', &fileformat)
307 set fileformat&
308 call assert_fails('e ++fileformat Xfile1', 'E474:')
314 " used as the 'fileformat'.
317 call writefile([&fileformat], 'Xfile', 'a')