1 Test for autocommand that redefines the argument list, when doing ":all".
5 :au BufReadPost Xxx2 next Xxx2 Xxx1
7 A1
\e:.,/end of/w! Xxx1 " write test file Xxx1
8 $r2:.,/end of/w! Xxx2 " write test file Xxx2
9 $r3:.,/end of/w! Xxx3 " write test file Xxx3
10 :next! Xxx1 Xxx2 Xxx3 " redefine arglist; go to Xxx1
11 :all " open window for all args
12 :w! test.out " Write contents of Xxx1
13 \x17\x17\x17\x17:w >>test.out " Append contents of last window (Xxx1)
14 :rew " should now be in Xxx2
15 :w >>test.out " Append contents of Xxx2
19 start of test file Xxx