Subversion Repositories planix.SVN

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
100 7u83 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