1 Tests for autocommands on :close command
3 Write three files and open them, each in a window.
4 Then go to next window, with autocommand that deletes the previous one.
5 Do this twice, writing the file.
7 Also test deleting the buffer on a Unload event. If this goes wrong there
8 will be the ATTENTION prompt.
10 Also test changing buffers in a BufDel autocommand. If this goes wrong there
11 are ml_line errors and/or a Crash.
15 :/^start of testfile/,/^end of testfile/w! Xtestje1
16 :/^start of testfile/,/^end of testfile/w! Xtestje2
17 :/^start of testfile/,/^end of testfile/w! Xtestje3
28 :au WinLeave Xtestje2 bwipe
31 :au WinLeave Xtestje1 bwipe Xtestje3
35 :bwipe Xtestje2 Xtestje3 test.out
37 :au! BufUnload Xtestje1 bwipe
47 :bwipe Xtestje2 Xtestje3 test.out test13.in
48 :au BufWipeout Xtestje1 buf Xtestje1