Bram Moolenaar | b5bf5b8 | 2004-12-24 14:35:23 +0000 | [diff] [blame^] | 1 | Some tests for buffer-local autocommands |
| 2 | |
| 3 | STARTTEST |
| 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! |
| 14 | ENDTEST |
| 15 | |
| 16 | start of test file xx |
| 17 | end of test file xx |