1 Test for autocommand that deletes the current buffer on BufLeave event.
2 Also test deleting the last buffer, should give a new, empty buffer.
8 :.,/end of/w! Xxx " write test file Xxx
10 :bwipe " delete buffer Xxx, now we're back here
12 othis is some more text
\e
13 : " Append some text to this file
14 :?start?,$w! test.out " Write current file contents
15 :bwipe test.out " delete alternate buffer
16 :au bufleave test5.in bwipe
17 :bwipe! " delete current buffer, get an empty one
18 ithis is another test line
\e:w >>test.out
19 : " append an extra line to the output file
23 start of test file Xxx