blob: b3fbe725986e71e4847a1792e0d297ff57887a18 [file] [log] [blame]
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001Some tests for buffer-local autocommands
2
3STARTTEST
4:so small.vim
5:e xx
6:!rm -f test.out
7:au BufLeave <buffer> :!echo "buffer-local autommand in %" >> test.out
8:e somefile " here, autocommand for xx shall write test.out
9: " but autocommand shall not apply to buffer named <buffer>
10:bwipe xx " here, autocommand shall be auto-deleted
11:e xx " nothing shall be written
12:e somefile " nothing shall be written
13:qa!
14ENDTEST
15
16start of test file xx
17end of test file xx