1 Test for autocommand that changes current buffer on BufEnter event.
2 Check if modelines are interpreted for the correct buffer.
6 :set nocompatible viminfo+=nviminfo
9 :.,/end of/w! Xxx " write test file Xxx
10 :set ai modeline modelines=3
11 :sp Xxx " split to Xxx, autocmd will do :brew
13 othis should be auto-indented
\e
14 : " Append text with autoindent to this file
16 :buf Xxx " go to Xxx, no autocmd anymore
18 othis should be in column 1
\e:wq " append text without autoindent to Xxx
19 G:r Xxx " include Xxx in the current file
20 :?startstart?,$w! test.out
25 start of test file Xxx