Merged from the latest developing branch.
[MacVim.git] / src / testdir / test4.in
blob4aa2fe5a86b54820085ce1c28c87e75a344d7c2e
1 Test for autocommand that changes current buffer on BufEnter event.
2 Check if modelines are interpreted for the correct buffer.
4 STARTTEST
5 :so small.vim
6 :set nocompatible viminfo+=nviminfo
7 :au BufEnter Xxx brew
8 /start of
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
12 G?this is a
13 othis should be auto-indented\e
14 :                   " Append text with autoindent to this file
15 :au! BufEnter Xxx
16 :buf Xxx            " go to Xxx, no autocmd anymore
17 G?this is a
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
21 :qa!
22 ENDTEST
24 startstart
25 start of test file Xxx
26 vim: set noai :
27         this is a test
28         this is a test
29         this is a test
30         this is a test
31 end of test file Xxx