blob: 9fc6537e085b4fd7e7ba1e7cc0717b5e24991ada [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
Bram Moolenaarac98e5d2008-09-01 14:51:37 +00006:if has("vms")
7: !del test.out.*
8: au BufLeave <buffer> :!write sys$output "buffer-local autommand in %" > test.out
9:else
10: !rm -f test.out
11: au BufLeave <buffer> :!echo buffer-local autommand in %>> test.out
12:endif
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +000013:e somefile " here, autocommand for xx shall write test.out
14: " but autocommand shall not apply to buffer named <buffer>
15:bwipe xx " here, autocommand shall be auto-deleted
16:e xx " nothing shall be written
17:e somefile " nothing shall be written
18:qa!
19ENDTEST
20
21start of test file xx
22end of test file xx